Jump to content



Photo
- - - - -

Jumping effect on sidescrolls


  • Please log in to reply
1 reply to this topic

#1 glra2222

glra2222

    Newbie

  • Members
  • Pip
  • 17 posts

Posted 09 March 2003 - 03:03 AM

How do i make a character jump and then fall down so that it can jump over obstacles. I have made it possible to jump using for and next code but cannot get it to move sidewards when jumping. I am making this in text mode because its faster.
Can anyone help?

#2 BiTwhise

BiTwhise

    Casio Overgod

  • [Legends]
  • PipPipPipPipPipPipPip
  • 627 posts
  • Gender:Male
  • Location:Guildford, Surry, UK
  • Interests:Programming, games, consoles, martial arts

  • Calculators:
    FX9700WE, CFX9970G, AFX2.0, Classpad 300

Posted 09 March 2003 - 11:25 AM

You will need variables for vertical speed, and some variable for gravitational acceleration
Let keypresses manipulat that variable, rather than doing the actual jump, and let the game engine handle those variables on every pass




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users