Set a variable "SpriteX"
Inside a forever loop on the sprite, have "set spritex=x"
On the stage:
Inside a forever (or repeat until) loop
If spritex > 240, switch to costume "second scene"
Offline
It would be better to use a broadcast and have the sprite detect the edge itself
in sprite
when green flag
wait until x-position > 230
broadcast switch to level 2 and wait
on stage
when I receive switch to level 2
switch to costume "second scene"
Offline
I tend to be leery of broadcasts - they seem to be one of the things that occasionally fouls up when you upload your demo.
Offline
Actually, foerver loops are more likely to foul up the Java implementation than broadcasts are, and broadcast and wait is safer still.
Offline