Navigation

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

    Jumping in 3D

    Beginners
    2
    5
    277
    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.
    • J
      jbc630 last edited by

      I have set up a 3D split screen environment where two players can walk around with their first person cameras. I am having trouble getting them to jump. I tried applying some of the stuff from the 2d game tutorial, but it doesn't seem to work.

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

        Did you manage to get it working?

        1 Reply Last reply Reply Quote 0
        • J
          jbc630 last edited by

          Yeah. A couple days ago in fact. This stuff just doesn't come naturally to me and I have to come back to it later. This is how I did it:

          1 Reply Last reply Reply Quote 0
          • J
            jbc630 last edited by Martin

            This is how I did it:

            if c.a and jumptimer<12 then
                  jumptimer+=1
                 camPos1.y+=10/jumptimer
            endif
            
            if camPos.y>=5 then
                 camPos1.y-=0.75
            else
                jumptimer=0
            endif
            
            1 Reply Last reply Reply Quote 3
            • PickleCatStars
              PickleCatStars F last edited by

              Well done :)

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