Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Idle engine
- MiddleSchoolMaddness
- Scratcher
5 posts
Idle engine
I'm working on a anime fighting game, and I can't get the sprites to return to their idles. how do I do it?
- kingKASEtheGREATalt
- Scratcher
100+ posts
Idle engine
are your fighting costumes animated? if so, then using a variable for their animations could help
otherwise, unanimated costumes would go like this:
forever
if <(current animation) = [idle]> then
switch costume to [ idle1]
wait (0.5) secs
switch costume to [ idle2]
...
else
if <(current animation) = [attack]> then
switch costume to [ attack1]
wait (0.05) secs
switch costume to [ attack2]
...
else
...
end
end
end
otherwise, unanimated costumes would go like this:
forever
if <(current animation) = [idle]> then
switch costume to [ idle]
else
if <(current animation) = [attack]> then
switch costume to [ attack]
else
...
end
end
end
- MiddleSchoolMaddness
- Scratcher
5 posts
Idle engine
your welcome! Thank you very much, This helped a whole bunch!
https://scratch.mit.edu/projects/990656020 here's my first sprite's result.
- kingKASEtheGREATalt
- Scratcher
100+ posts
Idle engine
your welcome! Thank you very much, This helped a whole bunch!
https://scratch.mit.edu/projects/990656020 here's my first sprite's result.
its unshared i think, its giving me an error
- MiddleSchoolMaddness
- Scratcher
5 posts
Idle engine
retry nowyour welcome! Thank you very much, This helped a whole bunch!
https://scratch.mit.edu/projects/990656020 here's my first sprite's result.
its unshared i think, its giving me an error
- Discussion Forums
- » Help with Scripts
- » Idle engine