Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » My detection sprite is not working
- O-oty
-
93 posts
My detection sprite is not working
Im working on a game called colorless and your suppost to touch the square that looks like the windows logo but its not working.
(its suppost to open up a portal to the next level)
game: https://scratch.mit.edu/projects/187234741/
(its suppost to open up a portal to the next level)
game: https://scratch.mit.edu/projects/187234741/
- deck26
-
1000+ posts
My detection sprite is not working
If you mean touching sprite2 should make sprite3 appear it worked for me.
Make sure you show sprite2 when you click the green flag though as currently once it hides it doesn't reappear if you restart the project.
In fact you're generally not initialising things in your project. You should generally make sure the project always resets variables etc before any actual code is run which may depend on things being set correctly.
Make sure you show sprite2 when you click the green flag though as currently once it hides it doesn't reappear if you restart the project.
In fact you're generally not initialising things in your project. You should generally make sure the project always resets variables etc before any actual code is run which may depend on things being set correctly.
- O-oty
-
93 posts
My detection sprite is not working
If you mean touching sprite2 should make sprite3 appear it worked for me.
Make sure you show sprite2 when you click the green flag though as currently once it hides it doesn't reappear if you restart the project.
In fact you're generally not initialising things in your project. You should generally make sure the project always resets variables etc before any actual code is run which may depend on things being set correctly.
ok ill do that.
- PutneyCat
-
500+ posts
My detection sprite is not working
As far as I can tell the project does detect when sprite1 and sprite2 are touching - and sprite3 then appears. Although this requires the green flag to be clicked so the “forever” loops run. It's possible you've been moving sprite1 (with arrow keys) without the rest of the project running. I also noticed that the project seems to start with the backdrop set to level2 rather than level1, which might explain why it's not working as expected.
- Discussion Forums
- » Help with Scripts
-
» My detection sprite is not working