Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Can't switch costumes
- Flickerflight02
-
57 posts
Can't switch costumes
So, I'm trying to get this sprite to go to the next costume when ‘d’ is pressed. My script is very simple; ‘When I receive this message, show, if ’d' key pressed next costume.' It is followed by another script that says ‘If space key pressed go here’.
My problem is that if I put a forever block around it, when I press d it switches costumes too fast. I tap it just once and it flickers through 5 costumes. If I take away the forever block neither script works. What can I do to change this?
My problem is that if I put a forever block around it, when I press d it switches costumes too fast. I tap it just once and it flickers through 5 costumes. If I take away the forever block neither script works. What can I do to change this?
- LordAwesome123
-
98 posts
Can't switch costumes
I'd split the script into three parts.
When I receive ()
show
If D key is pressed
next costume
If space key is pressed
Go to x () y ()
That should solve it.
When I receive ()
show
If D key is pressed
next costume
If space key is pressed
Go to x () y ()
That should solve it.
- Discussion Forums
- » Help with Scripts
-
» Can't switch costumes