Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Need help with a scratch script.
- ANA130
- New to Scratch
3 posts
Need help with a scratch script.
I have written a simple script - Traffic Signal. In this script, the sprite (ball) changes colour to red, waits for 5 seconds and changes the colour to green, waits for 3 seconds and switches back to red. The is executed in a forever loop.
At the start of the script, I am using the block
Is there anything I am missing? Any inputs will help. I have provided my script below:
At the start of the script, I am using the block
go to x: (-115) y: (101)to position the red ball before the exection starts. However, I see that the ball does not position itself at that location and when the program begins, it starts at x: -264 and y:101.
Is there anything I am missing? Any inputs will help. I have provided my script below:
Last edited by ANA130 (Dec. 6, 2017 07:22:17)
- ANA130
- New to Scratch
3 posts
Need help with a scratch script.
I had posted the earlier message without adding the link to the script. Please find it below:
Traffic Light
Traffic Light
- deck26
- Scratcher
1000+ posts
Need help with a scratch script.
You set x to -115 and then the next change to x is to change it by minus 175 so this isn't surprising really!
- ANA130
- New to Scratch
3 posts
Need help with a scratch script.
Thanks Deck26. I got it.
Have modified the script to make it work the way I wanted it.
Thanks again.
Have modified the script to make it work the way I wanted it.
Thanks again.
- Discussion Forums
- » Help with Scripts
- » Need help with a scratch script.