Discuss Scratch

Rainbow_Cat7
Scratcher
6 posts

Walking animations are going over the jump animation.

I'm making a game called Donkey Kong Dodge, and I need help because the walking animations are going over the animations for jumping, if anyone needs it, I can share my code using those blocks they have in this message box. If you know a solution, please quote this.

Last edited by Rainbow_Cat7 (March 8, 2025 21:26:27)

GamingCat12345
Scratcher
100+ posts

Walking animations are going over the jump animation.

Rainbow_Cat7 wrote:

Snip

If you are using the mod block, make sure the number in the second input is correct
I do need some scripts to decipher the problem so could you share those?
Rainbow_Cat7
Scratcher
6 posts

Walking animations are going over the jump animation.

GamingCat12345 wrote:

Rainbow_Cat7 wrote:

Snip

If you are using the mod block, make sure the number in the second input is correct
I do need some scripts to decipher the problem so could you share those?


I don't use modded blocks, (as i think your talking about those). Also on my screen its cut off

Edit: i didnt say snip why is that the message

Last edited by Rainbow_Cat7 (March 9, 2025 01:03:16)

user10234576
Scratcher
34 posts

Walking animations are going over the jump animation.

Rainbow_Cat7 wrote:

GamingCat12345 wrote:

Rainbow_Cat7 wrote:

Snip

If you are using the mod block, make sure the number in the second input is correct
I do need some scripts to decipher the problem so could you share those?


I don't use modded blocks, (as i think your talking about those). Also on my screen its cut off

Edit: i didnt say snip why is that the message

I think he means this block:
mod0
Rainbow_Cat7
Scratcher
6 posts

Walking animations are going over the jump animation.

user10234576 wrote:

Rainbow_Cat7 wrote:

GamingCat12345 wrote:

Rainbow_Cat7 wrote:

Snip

If you are using the mod block, make sure the number in the second input is correct
I do need some scripts to decipher the problem so could you share those?


I don't use modded blocks, (as i think your talking about those). Also on my screen its cut off

Edit: i didnt say snip why is that the message

I think he means this block:
mod0

i dont use mod blocks
GamingCat12345
Scratcher
100+ posts

Walking animations are going over the jump animation.

Then what did you use? Could I see the project, its hard to debug something you can't see, (if we're considering debugging easy that is)
grkw2020
Scratcher
100+ posts

Walking animations are going over the jump animation.

What if you did something like:

ifcostumenumber>finalwalkingframethenswitchcostumetofirst walking frame

Does that answer your question? Or have I misunderstood it entirely?
Rainbow_Cat7
Scratcher
6 posts

Walking animations are going over the jump animation.

grkw2020 wrote:

What if you did something like:

ifcostumenumber>finalwalkingframethenswitchcostumetofirst walking frame

Does that answer your question? Or have I misunderstood it entirely?

i'll try

edit: it doesn't work

Last edited by Rainbow_Cat7 (March 13, 2025 21:46:27)

grkw2020
Scratcher
100+ posts

Walking animations are going over the jump animation.

Rainbow_Cat7 wrote:

grkw2020 wrote:

What if you did something like:

ifcostumenumber>finalwalkingframethenswitchcostumetofirst walking frame

Does that answer your question? Or have I misunderstood it entirely?

i'll try

edit: it doesn't work
Maybe could you share the project? That way it'll be easier to what isn't working.
Rainbow_Cat7
Scratcher
6 posts

Walking animations are going over the jump animation.

grkw2020 wrote:

Rainbow_Cat7 wrote:

grkw2020 wrote:

What if you did something like:

ifcostumenumber>finalwalkingframethenswitchcostumetofirst walking frame

Does that answer your question? Or have I misunderstood it entirely?

i'll try

edit: it doesn't work
Maybe could you share the project? That way it'll be easier to what isn't working.

ok i'll do that

Link: https://scratch.mit.edu/projects/1144191225/

Last edited by Rainbow_Cat7 (March 15, 2025 16:31:13)

grkw2020
Scratcher
100+ posts

Walking animations are going over the jump animation.

Rainbow_Cat7 wrote:

grkw2020 wrote:

Rainbow_Cat7 wrote:

grkw2020 wrote:

What if you did something like:

ifcostumenumber>finalwalkingframethenswitchcostumetofirst walking frame

Does that answer your question? Or have I misunderstood it entirely?

i'll try

edit: it doesn't work
Maybe could you share the project? That way it'll be easier to what isn't working.

ok i'll do that

Link: https://scratch.mit.edu/projects/1144191225/
Could you explain the issue in more detail? I'm walking around and it only uses the 3 walking frames. Is the problem that when you jump and move left or right it replaces the jumping costume with the walking animation?
Rainbow_Cat7
Scratcher
6 posts

Walking animations are going over the jump animation.

grkw2020 wrote:

Rainbow_Cat7 wrote:

grkw2020 wrote:

Rainbow_Cat7 wrote:

grkw2020 wrote:

What if you did something like:

ifcostumenumber>finalwalkingframethenswitchcostumetofirst walking frame

Does that answer your question? Or have I misunderstood it entirely?

i'll try

edit: it doesn't work
Maybe could you share the project? That way it'll be easier to what isn't working.

ok i'll do that

Link: https://scratch.mit.edu/projects/1144191225/
Could you explain the issue in more detail? I'm walking around and it only uses the 3 walking frames. Is the problem that when you jump and move left or right it replaces the jumping costume with the walking animation?

yeah
102acrimea
Scratcher
100+ posts

Walking animations are going over the jump animation.

Firstly, create a variable that is called jumping

Set jumping to 1 while in the air, 0 if not.

Add a check after the if key left or right arrow is pressed script that checks if jumping is 0, if it is, continue, else, stop. Add this check before each switch to costume X

Powered by DjangoBB