Making Actor Jump onto a platform
SmallBytes
Member, PRO Posts: 21
I have tried for about 5 hours now to get my actor to be able to jump onto a platform following your help guide http://gamesalad.com/wiki/how_tos:gsc_jump but i can not get it to work.
I want my character to be able to jump on to a platform and then be able to jump from platform to platform.
Can anyone help me beyond sending me to the How do I make an actor jump? Post. Which i can not get to work.
Thanks
D
I want my character to be able to jump on to a platform and then be able to jump from platform to platform.
Can anyone help me beyond sending me to the How do I make an actor jump? Post. Which i can not get to work.
Thanks
D
This discussion has been closed.
Comments
in the jumper
RULE (ALL)
When self.linearvelocity.Y < 0
When collides with platform
[
Timer for .4 seconds
Accelerate 90 to scene
500
]
This method allows you to jump through a platform and automatically jump again.
I wouldn't use scene gravity as constraining any platforms that you want to have move has caused collision detection problems for me in the past. Just put an acceleration behavior in the 270 direction in any falling actors.
If you want to have a jumper that you control with a jump button do this-
RULE
When self.linearvelocity.Y is < 0
collide with platform
RULE
When key is pressed
[
Timer for .4 seconds
Accelerate 90 to scene
500
]
Good luck!
rule
all
when actor recieves event touch is outside (this is if you want it to jump when something other than the actor is clicked)
when actor recives event over laps or collides with actor of type platform
Timer
for 0.5 seconds check run to completion
Accellorate
Direction 90 relative to actor
Acelloration 700 (make sure this is > your gravity atribute)
hope this helps!
ps. I have a game coming out soon!
i'm just like you now, no games