Drawing multiple of the same sprites?
-
@Maxwello At the start of your program call
loadMap("mapName")
, then before yourupdate()
line in the main loop, calldrawMap()
That will draw the entire map, all layers etc. If you want to achieve something like parallax scrolling (scrolling different layers at different speeds), you'll need to draw the layers individually. For a top down game, this shouldn't be a concern though!
-
@Dave thanks Dave I did that and it looked like a blank screen so perhaps it was a layering issue, now you have Confirmed that's the way I can keep trying knowing I'll succeed eventually thanks again
I may have had drawmap and update map back to front. (puts on boxing mitt.. Downward thrust) -
@Maxwello You might have issues with your sprite camera if that's the case. I would recommend taking a good look at the FUZE Platformer program. I would direct you to a tutorial for this, but currently there isn't one. This is being worked on however! You will have a better resource for this in the future.
-
@Dave oh it's cool I think one of these threads had some 2d camera advice.
On the subject of tutorials some seem to be greyed out throughout have you noticed this? -
@Maxwello Which tutorials do you mean dude? I'm not sure what you mean by grayed out - do you mean tutorials on here in FUZE Arena or within Fuze itself?
-
@Dave they have probably always been this way and I've just had a massive brain malfunction
Edit
OK sussed it omg as soon as I saw the photo then glanced back at the switch it clicked its cos I have a bunch of code greyed out in my code with the /* */Edit2
Sorry if this is common sense I guess I just hadn't been in this position before
I just didn't know sorry and I've been straining my eyes with it too lol
-
@Maxwello Hmmm - this is strange. Initially I thoght "Ah! you've found an issue, I'll fix that" - but I took a look at this tutorial on Fuze and this grayed out effect is not on mine. We will look into this. Out of interest - what happens when you copy and paste that block of code into a Fuze program? (Move the cursor using the d-pad to that code block so it is highlighted with the white border, then press the Y button to copy the code. "Copied code to clipboard!" should appear as a message at the bottom of the screen. Then, go to an empty project and paste the code from your clipboard in there.
-
@Dave it pastes in fine.. Seems that it occurs only if you have any of the commented out woth the /*. */
Even if it's just like
/*hello
Within an entire project if you then open help.
I guess it sees the help as an extension of the project?
-
Oh, that's definitely a bug! Thank you.
-
Great info - thanks @Maxwello !