#How to make a nice flying jumping

1 messages · Page 1 of 1 (latest)

dire sentinel
craggy tangle
dire sentinel
#

i dont think i can. i want to make it a smooth jump/flying

craggy tangle
nova dirge
#

My beta guess is to probably make a 60hz

dire sentinel
#

No no not that. The falling objects' gravity

#

Something like that

craggy tangle
# dire sentinel No no not that. The falling objects' gravity
  • Create a new Float variable for the object’s Y velocity "Object Y Velocity".
  • When the object is supposed to jump, set Object Y Velocity to a value higher than 0; 10 for example.
  • When the object lands on the ground, set Object Y Velocity to 0.
  • Using an "Event Receiver: Update 30Hz", set Object Y Velocity to (Object Y Velocity - 9.81 * Delta Time).
  • Using an Event Receiver: Update 30Hz (this should be the one you are using to set the object's position), set the object's Y position to (Get Position(object)[Y] + Object Y Velocity * Delta Time).