Navigation

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

    Platformer movement with maps not array levels

    Beginners
    3
    12
    641
    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.
    • waldron
      waldron F last edited by waldron

      check out some of the gamejam games, iv made many platformers using maps, you need a jump switch so the program knows if your touching the floor.
      `col = collidemap(player,true)
      if len(col)>= 0 then
      jump = true
      endif

      if c.a and jump ==true then
      player.y_speed = -40
      jump = false
      endif`

      there is a little more to it so if your still stuck check out the sample programs/gamejam games

      1 Reply Last reply Reply Quote 0
      • PickleCatStars
        PickleCatStars F last edited by

        So collidemap() returns an array of all the ’map pieces’ you’re touching? Do you have to set anything special in the map editor for that to work?

        waldron 1 Reply Last reply Reply Quote 0
        • waldron
          waldron F @PickleCatStars last edited by

          @toxibunny yep thats it all the boxes circle's triangles you draw in the map editor correlate with the collidemap() unless you name them which in that case you define them

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

            Ok thanks for the help I'll give it a try.

            waldron 1 Reply Last reply Reply Quote 0
            • waldron
              waldron F @poof92 last edited by

              @poof92 if your still stuck i'm happy to share a program with comments to get you going

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

                Yeah could you it would really be helpful thanks.

                waldron 1 Reply Last reply Reply Quote 0
                • waldron
                  waldron F @poof92 last edited by

                  @poof92 no problem won't be till tomorrow afternoon though

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

                    Thats fine by me thank you

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

                      16Z73MND5U platform jumper submitted, i had the same issue when i first started but this should get you going also added in simple animation states for the player.

                      1 Reply Last reply Reply Quote 4
                      • poof92
                        poof92 last edited by

                        Awesome thank you I'll check it out

                        1 Reply Last reply Reply Quote 2
                        • poof92
                          poof92 last edited by

                          It works really well now thanks

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