Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Drawing multiple of the same sprites?

    Coding
    4
    15
    589
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dave
      Dave Fuze Team @Maxwello last edited by

      @Maxwello At the start of your program call loadMap("mapName"), then before your update() line in the main loop, call drawMap()

      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!

      M 1 Reply Last reply Reply Quote 0
      • M
        Maxwello F @Dave last edited by Maxwello

        @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)

        Dave 1 Reply Last reply Reply Quote 0
        • Dave
          Dave Fuze Team @Maxwello last edited by

          @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.

          M 1 Reply Last reply Reply Quote 0
          • M
            Maxwello F @Dave last edited by

            @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?

            Dave 1 Reply Last reply Reply Quote 0
            • Dave
              Dave Fuze Team @Maxwello last edited by

              @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?

              M 1 Reply Last reply Reply Quote 0
              • M
                Maxwello F @Dave last edited by Maxwello

                @Dave they have probably always been this way and I've just had a massive brain malfunction IMG_20200204_155457.jpg

                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

                Dave 1 Reply Last reply Reply Quote 1
                • Dave
                  Dave Fuze Team @Maxwello last edited by

                  @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.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    Maxwello F @Dave last edited by Maxwello

                    @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?

                    1 Reply Last reply Reply Quote 1
                    • Martin
                      Martin Fuze Team last edited by

                      Oh, that's definitely a bug! Thank you.

                      1 Reply Last reply Reply Quote 2
                      • Dave
                        Dave Fuze Team last edited by

                        Great info - thanks @Maxwello !

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post