3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1] 2

Author Topic: How to Jump in FPS game  (Read 1861 times)

« on: March 25, 2013, 09:38:50 AM »
I Figured out how to jump in FPS games...
See it, i have uploaded example...  :D
« Reply #1 on: March 25, 2013, 04:10:09 PM »
Nice work mate!

couple of things, jump takes a while to start off and you can jump infinitely. It feels kind of slow.
« Reply #2 on: March 27, 2013, 02:53:40 AM »
I've tried so many times to make a jump for the CamFirstPerson, but I've never done it. Maybe you could try making the EventOnInput stop until the camera touches the ground, to keep him from jumping forever.
« Reply #3 on: March 27, 2013, 03:45:16 AM »
it should be simple if U can script.

Make a script so that once you press the jump button, stop the event on input so you can't jump.

Then start an event timer for about 2 seconds, once the tine is up, restart the eoi.

secondry2

« Reply #4 on: March 27, 2013, 04:06:34 AM »
change the auto repeat rate on the EOI to 9999999 so you can hold space as long as you want, you will only jump once.
« Reply #5 on: March 27, 2013, 09:59:22 AM »
I've tried so many times to make a jump for the CamFirstPerson, but I've never done it. Maybe you could try making the EventOnInput stop until the camera touches the ground, to keep him from jumping forever.
Thanks man, i didn't knew that he can jump infinitely! Thanks, i will try repairing it!
« Reply #6 on: June 19, 2013, 04:51:07 AM »
i made a jump for fps games.....
and it works perfectly!!!!

i have attached it
« Reply #7 on: June 21, 2013, 12:25:18 PM »
I've been using the non-scripted method of timers for cam1stperson jumps in my games for a while now, and it works fine.
« Reply #8 on: June 23, 2013, 11:41:48 AM »
I've been using the non-scripted method of timers for cam1stperson jumps in my games for a while now, and it works fine.
Duh!!! That's exactly wat I communicated!!!! ....only that I actually game a demo!!!!
U don't see it did you??
« Reply #9 on: June 24, 2013, 03:05:30 PM »
Very clever, but I found a bug...   stand on a big hill.. jump off it and hold down the jump button.. you jump again whilest still in thr air. Just change the time to fix it..
Another way you could do it is using an event on contact.
Have it so the input event stops untill the player has contact with the ground.
« Reply #10 on: June 25, 2013, 10:04:32 AM »
Check Newton's Law of Momentum before solely using the eventoncontact method.
To use this it must also be assisted with timers to start and stop the eventoncontact, or
the player will be able to superjump, like this:

First Jump Second Jump Ratio:
                    D
                   X X
                 X     X
    D         X        X
   X X      X          X
 X     X  X             X
X        X                X
~~~~~~~~~~~~~~~~

To further explain, the momentum of the character will make the second jump higher than the last, then the next, and so on.
« Reply #11 on: June 25, 2013, 02:11:46 PM »
Yeah butbi could jump again without landing..
Its a vety good way to do it and I just increased the time and it worked better :)
« Reply #12 on: June 25, 2013, 02:59:32 PM »
I have no clue as to if this works, but is it possible to do this with an event on contact? Maybe if the player is in contact bounds with the terrain then you can jump, and when you are in the air, you cannot re-jump. Thus removing the need to use EventTimers and Scripts?

Gonna try to make a project.

Ok, it's done. You can add double jump and edit the jump height. Just edit the Velocity and EOC.
[::-Bitpoint-::]
« Reply #13 on: June 26, 2013, 06:12:10 AM »
Very clever, but I found a bug...   stand on a big hill.. jump off it and hold down the jump button.. you jump again whilest still in thr air.
Hmmm....perhaps we should use an event on contact for that....



Another way you could do it is using an event on contact.
Have it so the input event stops untill the player has contact with the ground.
Ahh!!!! Just what i was thinking
« Reply #14 on: June 26, 2013, 06:12:51 AM »
I have no clue as to if this works, but is it possible to do this with an event on contact? Maybe if the player is in contact bounds with the terrain then you can jump, and when you are in the air, you cannot re-jump. Thus removing the need to use EventTimers and Scripts?

Gonna try to make a project.

Ok, it's done. You can add double jump and edit the jump height. Just edit the Velocity and EOC.
You got a point will check it out......
Pages: [1] 2