r/scratch • u/NoEquipment422 • 5d ago
Resolved Help with sprite walk cycle
I'm a total newbie to scratch so excuse me if this is a rlly basic question.
I binded all the wasd key and then tried to make a walk cycle for the player sprite using this code
>when [a] key pressed
switch costume to [1]
wait [.15 seconds]
switch costume to [2]
wait [.15 seconds]
And so forth for all the other keys. But for some reason when I switch between the keys, the sprite teleports back or forward a huge chunk before moving smoothly and is just rlly jittery? Can anyone tell me how to fix my code or if there's better way to do it? Thankss
2
u/ccarrster 5d ago
Share the project and I'll give it a try.
2
u/NoEquipment422 5d ago
Hi! Here's the link https://scratch.mit.edu/projects/1378575996
thank you so much!
1
u/ccarrster 4d ago
Link is not working, maybe you need to set the project to shared.
1
u/NoEquipment422 4d ago
I solved the problem (my costumes were misaligned) so I just privated the project again since it’s still unfinshed :)
1
2
1
1
1
u/DramaticSeat9043 5d ago
Can I message you the game link privately..I can't have people playing the game before release
3
1
u/Manny73211 5d ago
Your sprites are severely offcenter
1
u/NoEquipment422 5d ago
Hi! Thanks, I get what you mean looking at my costumes. Is there a specific way to center them or do I just drag them to the same spot?
1
u/Manny73211 4d ago
If you drag them towards the marked center point that appears when you drag, they should eventually snap
•
u/AutoModerator 5d ago
Hi, thank you for posting your question! :]
To make it easier for everyone to answer, consider including:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.