Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Script not working in game but working in preview! help please
- Forestgirl
- New to Scratch
5 posts
Script not working in game but working in preview! help please
I have this one script for a sprite to make it appear, wait for 3 seconds and then disappear. However, it doesn't work when i'm in the game, but it works when I click the script as a ‘preview’. Very confused why it doesn't work, so any help would be great! Thanks
(yeah i'm new to this)
(yeah i'm new to this)
- JAVAProgramming
- Scratcher
100+ posts
Script not working in game but working in preview! help please
Can you share the project and provide a link?
It would help tremendously if I could see it..
It would help tremendously if I could see it..
My Newest Project, Come Check It Out
Dots, On Scratch
Want to change the way we count? The Dozenal System.
“The story so far:
In the beginning the Universe was created.
This has made a lot of people very angry and been widely regarded as a bad move.”
― Douglas Adams, The Restaurant at the End of the Universe
- Forestgirl
- New to Scratch
5 posts
Script not working in game but working in preview! help please
Ok i'll try! Please bear in mind it is very bad but i'll allow you to see it haha!
one min
one min
- Forestgirl
- New to Scratch
5 posts
Script not working in game but working in preview! help please
would it work as a screenshot or do i need to upload the proper game? like I said, I've just joined so sorry i know nothing
- JAVAProgramming
- Scratcher
100+ posts
Script not working in game but working in preview! help please
It would work best if you uploaded it, so I can play around with the scripts. would it work as a screenshot or do i need to upload the proper game? like I said, I've just joined so sorry i know nothing
My Newest Project, Come Check It Out
Dots, On Scratch
Want to change the way we count? The Dozenal System.
“The story so far:
In the beginning the Universe was created.
This has made a lot of people very angry and been widely regarded as a bad move.”
― Douglas Adams, The Restaurant at the End of the Universe
- drmcw
- Scratcher
1000+ posts
Script not working in game but working in preview! help please
How does your script differ from;
?
when flag clicked
show
wait (3) secs
hide
?
Last edited by drmcw (Sept. 29, 2013 17:50:51)
- scubajerry
- Scratcher
1000+ posts
Script not working in game but working in preview! help please
ff it looks like
The problem is likely that you are continually broadcasting some_event. This causes the script to start over before the 3 seconds is up. This is of course assuming that “doesn;t work” means it shows, but doesn't hide.
when I receive [some_event v] // some_event is whatever you call your event
show
wait (3) secs
hide
The problem is likely that you are continually broadcasting some_event. This causes the script to start over before the 3 seconds is up. This is of course assuming that “doesn;t work” means it shows, but doesn't hide.
Last edited by scubajerry (Sept. 30, 2013 03:00:42)
- Discussion Forums
- » Help with Scripts
- » Script not working in game but working in preview! help please