ifelon82 wrote:
Hey i was just wandering, how i could make sprite 1 change costume then change back to prev costume when i click sprite 2. all help appreciated. thanks
Sprite 1:
when gf clicked switch to costume [costume 2 v] forever if <(Sprite 2 Clicked ?) = [true]> switch to costume [costume 1 v] else switch to costume [costume 2 v]Sprite 2:
when gf clicked forever if <<touching [mouse-pointer v] ?> and <mouse down ?>> set [Sprite 2 Clicked ? v] to [true] else set [Sprite 2 Clicked ? v] to [false]Hope it helps.
Offline
jontmy00 wrote:
ifelon82 wrote:
Hey i was just wandering, how i could make sprite 1 change costume then change back to prev costume when i click sprite 2. all help appreciated. thanks
Sprite 1:
when gf clicked switch to costume [costume 2 v] forever if <(Sprite 2 Clicked ?) = [true]> switch to costume [costume 1 v] else switch to costume [costume 2 v]Sprite 2:when gf clicked forever if <<touching [mouse-pointer v] ?> and <mouse down ?>> set [Sprite 2 Clicked ? v] to [true] else set [Sprite 2 Clicked ? v] to [false]Hope it helps.![]()
Or you could optimize it by removing the
switch to costume [costume 2 v]after the green flag block.
Offline