Okay, so spoiler: I'm making a soccer game! I have little players with numbers. When you press a certain player's number, he will move. My problem is I can't get one to stop moving when another number is pressed! Could you help?
Thanks in advance, ToungeTwister :p
Offline
You could try with a variable that detects if a player is currently active.
if <(Active Player) = [Player 12]> Move around, kick some balls, do whatever he wants else do nothingAlso make a
when [Player 12 v] clicked wait [0.1] secs if <(Active Player) = [none]> set [Active Player v] to [Player 12] stop script end if <(Active Player) = [Player 12]> set [Active Player v] to [none] stop scriptHope it helps.. And works. Good luck!
Offline
Thanks so much! I'll give you credit on helping me with the project.
Offline
Do you have any other suggestions? I can't use red scripts unless you can help me with that too.
Offline
You don't need red scripts. The red blocks are just supposed to be whatever you already have for your sprite. Like moving keys and such.
Ignore the "Do nothing." It's just there to show that if the player isn't active, nothing will happen.
Offline