Discuss Scratch

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
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

Thank you very much, This helped a whole bunch!
kingKASEtheGREATalt
Scratcher
100+ posts

Idle engine

MiddleSchoolMaddness wrote:

Thank you very much, This helped a whole bunch!
your welcome!

MiddleSchoolMaddness
Scratcher
5 posts

Idle engine

kingKASEtheGREATalt wrote:

MiddleSchoolMaddness wrote:

Thank you very much, This helped a whole bunch!
your welcome!

https://scratch.mit.edu/projects/990656020 here's my first sprite's result.
kingKASEtheGREATalt
Scratcher
100+ posts

Idle engine

MiddleSchoolMaddness wrote:

kingKASEtheGREATalt wrote:

MiddleSchoolMaddness wrote:

Thank you very much, This helped a whole bunch!
your welcome!

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

kingKASEtheGREATalt wrote:

MiddleSchoolMaddness wrote:

kingKASEtheGREATalt wrote:

MiddleSchoolMaddness wrote:

Thank you very much, This helped a whole bunch!
your welcome!

https://scratch.mit.edu/projects/990656020 here's my first sprite's result.

its unshared i think, its giving me an error
retry now

Powered by DjangoBB