Pages: 1
I'm working on my first project. It's a game where one sprite moves and the other sprites don't. Is there a way to stop the script after the moving sprite has touched all of the other sprites?
Offline
when gf clicked forever script you want to stop goes here if <<<touching [sprite 1 v]?> and <touching [sprite 2 v]?>> and <<touching [sprite 3 v]?> and <touching [sprite 4 v]?>>> stop script end
Last edited by MoreGamesNow (2012-09-28 07:58:24)
Offline
When I try that it doesn't work unless the moving sprite is touching all of the other ones at the same time. I want to stop all scripts after it has touched all of the other sprites but not necessarily touching them at the same time.
Offline
when gf clicked set [touched s1 v] to [no] set [touched s2 v] to [no] set [touched s3 v] to [no] set [touched s4 v] to [no] forever script if <touching [ sprite 1 v]?> set [touched s1 v] to [yes] end if <touching [ sprite 2 v]?> set [touched s2 v] to [yes] end if <touching [ sprite 3 v]?> set [touched s3 v] to [yes] end if <touching [ sprite 4 v]?> set [touched s4 v] to [yes] endand then add a script into there that ends the script if all the variables = yes
Offline
MoreGamesNow wrote:
when gf clicked forever script you want to stop goes here if <<<touching [sprite 1 v]?> or <touching [sprite 2 v]?>> or <<touching [sprite 3 v]?> or <touching [sprite 4 v]?>>> stop script end
I fixed the script to make it work.
Last edited by ErnieParke (2012-09-28 19:34:47)
Offline
Pages: 1