Discuss Scratch

diamond_world23
Scratcher
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!
Create-Scratch101
Scratcher
500+ posts

Making Sprite's Costume Change Based on Sprite Direction

when green flag clicked
forever
switch costume to [(direction) v]
end
SpyCoderTeach
Scratcher
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/
Crowsauiy
Scratcher
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)

Powered by DjangoBB