Discuss Scratch

innerstar312
Scratcher
6 posts

Costume Problems!!! :(

Okay, so I'm making a few games with running animations for the main character.
Simple, right?
RIght?

I know how to make the running animations work when a key is pressed.
when green flag clicked
forever

if <key [ rightarrow] pressed?> then
switch costume to [ RunningRight1]
switch costume to [ RunningRight2]
switch costume to [ RunningRight3]
end

end

or something like that!

However, how do I make the guy go to a normal/standing still position when he stops running? Currently, when I make him stop running, he just stops on a random running costume. Bleah.

This is something in like EVERY GAME EVER, and there are a few ideas that I haven't tried, so who knows?
Any ideas?

Last edited by innerstar312 (Aug. 9, 2014 15:51:44)

Caiden2000
Scratcher
41 posts

Costume Problems!!! :(

when green flag clicked
forever

if <key [Left arrow] pressed?> then

repeat until <not <key [Left arrow] pressed?>>
Costume scripts and moving
end

end
switch costume to [Stand]
end

when green flag clicked
forever



if <(Help) = [helpful] > then
broadcast [Thank you so much! :)]
set (Gratitude) to [10]
end


end

Powered by DjangoBB

Standard | Mobile