Navigation

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

    Why won’t other code work?

    Comments & Feedback
    4
    5
    363
    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.
    • 91Pkay
      91Pkay last edited by

      So, when I load up my map from the editor and paste it into the code, all other code doesn’t work!!
      image.jpg
      Like in the picture it’s all fine but when I start the program the music doesn’t play. But if I remove the map then it does play. How do I fix this?

      1 Reply Last reply Reply Quote 0
      • Skullo
        Skullo last edited by

        Hi! I think you should include your code in just one loop/repeat. In case you need more than one loop, make sure to create an exit condition (break).

        1 Reply Last reply Reply Quote 2
        • vinicity
          vinicity F last edited by

          Your code will never go past line 8, since you have a never-ending loop from line 5 to line 8. Put the drawMap command in your main loop instead.

          1 Reply Last reply Reply Quote 2
          • 91Pkay
            91Pkay last edited by

            Ah thanks guys! I’m a beginner so im having trouble, but this will surely help!

            1 Reply Last reply Reply Quote 1
            • waldron
              waldron F last edited by

              Here's a brief over view of a game loop, id recommend checking out the Fuze official videos but you might also find this beneficial.

              https://fuzearena.com/forum/topic/1831/user-video-tutorials/7?_=1680558006130

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