Make an attribute (game.jump) and an actor(button) when button is pressed change attribute game.jump to 1. Give jumping actor this rule: when game.jump = 1 change acceleration = (some number here). direction going up. After 2 seconds: change game.jump = 0 when game.jump = 0 change acceloration = 0.
tenrdrmerMember, Sous Chef, Senior Sous-ChefPosts: 9,934
There's lots of ways to make an actor jump. Open up GameSalad and under new search for jump. You will get several free demos you can pick through that use different methods for jumping.
Comments
and an actor(button)
when button is pressed change attribute game.jump to 1.
Give jumping actor this rule:
when game.jump = 1
change acceleration = (some number here). direction going up.
After 2 seconds: change game.jump = 0
when game.jump = 0
change acceloration = 0.
___________________________________________________________________________________
TEMPLATES AND PROJECT HELP BY TENRDRMER. CLICK HERE!!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes