I've used a simple script like this:
when gf clicked forever if <([costume# v] of [Sprite1 v])=(4)> hideFor some reason, the sprite doesn't go away. I have to use the set ghost effect to 100 block instead.
Offline
Try NOT using the 'forever if' block.
It can be confusing.
Offline
ProgramCAT wrote:
Try NOT using the 'forever if' block.
It can be confusing.
I also tried using an if else block inside a forever block and it didn't work. I also tried your script you gave me for the Pac-man dots and it didn't work.
Offline
It worked when I tried it...
when gf clicked forever if < ([costume # v] of [Sprite 1 v]) = (4) > hide else show endIt's been TESTED and it DOES work.
Last edited by ProgramCAT (2012-02-17 15:35:49)
Offline
Please acknowledge that the block you're using says "costume #" not "costume", so it might not be "Costume 4" that the block is sensing for because all it's sensing for is the 4th costume in the row of costumes. :>
Last edited by CheeseMunchy (2012-02-17 15:26:00)
Offline
ProgramCAT wrote:
It worked when I tried it...
when gf clicked forever if < ([costume # v] of [Sprite 1 v]) = (4) > hide else show endIt's been TESTED and it DOES work.
Notice that it looks at the 4th costume of Sprite 1, not the costume labelled '4'.
Yes, I'm looking for when Sprite1's costume number is the 4th costume. Can you also test this?:
when gf clicked forever if <touching [Sprite1]?> hide else show wait (1) secs hide wait (1) secs endWhy does it work for you but not me?
Offline
Have you edited the source code or any of that stuff? I dunno XD
Offline
RedRocker227 wrote:
Have you edited the source code or any of that stuff? I dunno XD
Well, something weird happened after I tried to open the source code. The scripts pane turned completely white and you couldn't do anything, so I exited out. I'm not sure if I saved it or not.
Offline
1. Have you stamped it? Use this to see:
clear2. If you've done some modding, you should probably re-install Scratch.
Last edited by Greenatic (2012-02-17 18:52:25)

Offline
Greenatic wrote:
1. Have you stamped it? Use this to see:
clear2. If you've done some modding, you should probably re-install Scratch.
The sprite moves, so it's not stamping. I don't think I edited anything, I just went to the block library.
@Mokat: I might just do that.
Offline