Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Making Sprite's Costume Change Based on Sprite Direction
- diamond_world23
-
15 posts
Making Sprite's Costume Change Based on Sprite Direction
Hey! Recently I've hit a road block regarding a script that seems doable, but kinda difficult. I've been playing around with operator blocks and I haven't been able to get it so that my sprites costume changes based on the direction it's pointing in.
A good example of what I'm talking about is how your character in Club Penguin looks at your mouse pointer. Just to clarify, I am not trying to use the “rotation” blocks. I want it so that a costume is shown while the sprite is looking a certain direction.
I appreciate any feedback! Thanks!
A good example of what I'm talking about is how your character in Club Penguin looks at your mouse pointer. Just to clarify, I am not trying to use the “rotation” blocks. I want it so that a costume is shown while the sprite is looking a certain direction.
I appreciate any feedback! Thanks!
- Create-Scratch101
-
500+ posts
Making Sprite's Costume Change Based on Sprite Direction
when green flag clicked
forever
switch costume to [(direction) v]
end
- SpyCoderTeach
-
6 posts
Making Sprite's Costume Change Based on Sprite Direction
I made an example project. You can use it if u want (with credit):
https://scratch.mit.edu/projects/1068922881/
https://scratch.mit.edu/projects/1068922881/
- Crowsauiy
-
100+ posts
Making Sprite's Costume Change Based on Sprite Direction
when green flag clicked
forever
switch costume to [(direction) v]
end
also make sure to set the “direction” variable to the actual direction.
Last edited by Crowsauiy (Sept. 17, 2024 15:51:26)
- Discussion Forums
- » Help with Scripts
-
» Making Sprite's Costume Change Based on Sprite Direction