HI All Again
I would like to create a reset button, so all characters return to their original starting positions. However I cant seem to get the scripts to allow anything.
Id like something like:
WHEN button CLICKED
MOVE sprite1 AND sprite2
TO X:0 and Y:0
any advice?
Thanks
Paul
Offline
That should work, a broadcast.
Offline
Or you can use variables:
Button:
Sprite1:whenclicked
setreset ▼to0foreverwait untilmouse down?andtouchingmouse-pointer ▼?setreset ▼to1wait untilnotormouse down?nottouchingmouse-pointer ▼?
Sprite2:whenclicked
wait untilreset=0foreverwait untilreset=1go to x:0y:0wait untilreset=2setreset ▼to0
whenclicked
wait untilreset=0foreverwait untilreset=1go to x:0y:0setreset ▼to2
Offline
Is it generally better (more efficient, less likely to slow scripts down, etc) to use broadcast for things like this, or variables?
Offline
auntiechristine wrote:
Is it generally better (more efficient, less likely to slow scripts down, etc) to use broadcast for things like this, or variables?
Its better to use broadcasts, variables can get a bit clumsy.
Offline