I tried my trick I learnt from coolstuff and Wolfie1996 on my game, and now it's caused another glitch. View this project: http://scratch.mit.edu/projects/benjamin2/1121921 and read the notes. On level 1 the people are meant to talk when you click them. When I just made level 1, it worked fine. But when I made level 2, sometimes (or most of the time), both (or what's confusing, is sometimes only one) of them, won't talk when I click them. I think it might be something to do with the ghosts location. I tried making it so they only show on level 2, but, no, it didn't work. (The ghost effect is 99.99 so they are pretty much invisible) so why is level 2 stopping level 1 from working? Download and look at the scripts please and tell me why! Thank you!
Offline
Try adding this to the bits that do the broadcasting:
[if <(answer) = (PASSWORD HERE) > ]
[if <(background#) = (background number for that level) > ]
LEAVE THE FIRST "FORK" BLANK
[else]
[broadcast [level# v] ]
[______________________________]
[______________________________]
Hope this helps
Repeat that for every level, by the way
Offline
Wolfie1996 wrote:
Try adding this to the bits that do the broadcasting:
[if <(answer) = (PASSWORD HERE) > ]
[if <(background#) = (background number for that level) > ]
LEAVE THE FIRST "FORK" BLANK
[else]
[broadcast [level# v] ]
[______________________________]
[______________________________]
Hope this helps![]()
Repeat that for every level, by the way![]()
I don't quite understand you. Can you please use scratch blocks instead, and tell me where to put the script?
Offline
OK
This bit goes inside where you've got "if answer = start" (or one of the other passwords)
[blocks]
<if><( background# <=> the number of the level you want to broadcast plus one )>
Don't put any blocks in here
<else>
<broadcast[ level#
<end>
<end>[/blocks]
Does that help?
Offline
Wolfie1996 wrote:
OK
This bit goes inside where you've got "if answer = start" (or one of the other passwords)
[blocks]
<if><( background# <=> the number of the level you want to broadcast plus one )>
Don't put any blocks in here![]()
<else>
<broadcast[ level#
<end>
<end>[/blocks]
Does that help?![]()
Thank you, but it's OK. I figured out an easier way. The ghosts in level 2 were blocking the peole in level 1, we just couldn't see them. So I made it so they don't show until level 2.
Offline