Next problem:
I want to change background when my game character has reach a pink dot, turned into character 2.
I manage to change the background using broadcast but then I can't get the start background back when I click the green flag. The background 2 is fixed so to speak.
On the sprite I use broadcast level 2 within my script:
[forever
if touching color
switch to costume Y (new character for level 2)
play sound
broadcast level2
stop script
on stage
When receive level2
Switch to background2
I also have the script
when green flag clicked
[forever
switch to background1
stop all sound
stop script
Thanks: Z
Offline
Don't include the stop script blocks. Does that change anything?
Offline
Instead having this script:
when green flag clicked forever switch to background1 stop all sound stop script
I would recommend just removing the loop and stop blocks. That tends to cause a lot of problems by stopping other running scripts.
when green flag clicked switch to background1
Offline
Thanks for advices but:
If I take away the stop script for the sprite the sound is hacking without end.
If I take away the loop and stop block for the stage nothing change.
I can't get background1 back when click on green flag...
Offline
zippolulu wrote:
Thanks for advices but:
If I take away the stop script for the sprite the sound is hacking without end.
If I take away the loop and stop block for the stage nothing change.
I can't get background1 back when click on green flag...
Post the project, that way we might be able to help.
Offline
zippolulu wrote:
Thanks for advices but:
If I take away the stop script for the sprite the sound is hacking without end.
If I take away the loop and stop block for the stage nothing change.
I can't get background1 back when click on green flag...
I assume you mean the sound keeps starting over and over again by "hacking without end." That's caused by the loop block - the stop all block terminates the loop.
Offline
zippolulu wrote:
I have found the problem. It is a totally pink background (filled with the bucket) which doesn't work. Made a new one in green, it worked. Hm so scratch is sensitive to pink?
Z
No... It doesn't have anything to do with pink... No idea why, then.
Offline