How can i jump?
Hi everyone
I have a problem with my game. I would that when I touch anywhere on my screen, my actor make a little jump. How can I do that, that my actor don't fly? Have anyone a tutorial or something like that? If anyone can help me please explain detail, because I'm new here!!!
I have a problem with my game. I would that when I touch anywhere on my screen, my actor make a little jump. How can I do that, that my actor don't fly? Have anyone a tutorial or something like that? If anyone can help me please explain detail, because I'm new here!!!
Comments
second:
Watch all these youtube videos, they will give you a solid footing on how to use gamesalad
http://www.youtube.com/user/GameSaladCookbook
third:
go through this list of demos and take a look at actual projects
http://gamesalad.com/forums/topic.php?id=11558
after looking through that stuff you should able to answer your own question.
But to answer your questions have a actor called screen stretch it over the whole scene and change it's alpha to zero. Make a new attribute called jump and set it to 0. In the screen actor have a rule when touch is pressed change attribute jump to one, then in the otherwise section I'm that rule change attribute jump to 0
Then in the actor u want to jump have a rule when attribute jump=1 change attribute self motion linear y to self motion linear y+300 , then also have a accelerate down rule in the jumping actor for gravity
thanks a lot john!!!!