crawling
greyroom
Member Posts: 4
Hello, i am very new with this game salad and I need to make the actor crawls.
How do i set up a new rule (or what rule to use) since I already used the move tool and set the directional key on the keyboards for walking.
Basically what i have done is i have set when i press the down key (keyboard) the actor squats down. But after that i want the actor to crawl from that position. Right now after it squats down and if i were to press the left key, it will stand up and walk instead.
Thank you.
How do i set up a new rule (or what rule to use) since I already used the move tool and set the directional key on the keyboards for walking.
Basically what i have done is i have set when i press the down key (keyboard) the actor squats down. But after that i want the actor to crawl from that position. Right now after it squats down and if i were to press the left key, it will stand up and walk instead.
Thank you.
Comments
You'll have to nest two rules together, like this:
Rule:
When KEY is PRESSED (down)
Rule:
ANY
When KEY is PRESSED (left)
When KEY is PRESSED (right)
show crawling animation
OTHERWISE
just squat
Something like that.
Hope this helps!
But i got that fixed already..
now the problem is when i want to stand up after crawling, i have set the key to stand up when i press the key "UP" but when i press left / right for it to walk, it crawls instead.. haha..
Any idea?
create an attribute called crawling. then when a user hits down, it sets crawling to 1. then in your movement rules have something like this:
if Left is down
move left
if Right is down
move right
if game.Crawling is 1 and LEFT is down
crawl left
if game.Crawling is 1 and RIGHT is down
crawl right
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
But now it won't walk and crawl all the way instead.. haaha