Reply to freezing a sprite controlled by a loop
If you don't have an account, just leave the password field blank.
Hi,
I am writing a script that freezes a character on the screen when you touch an object. The character is moving back and forth using a goto loop, a move and a move_stop command. This script is attached to the moving sprite.
I've attached a script to a static object that should freeze the moving sprite when I touch it. I have set the touch value to 0 so it doesn't continually run the touch command while I am executing the contents. I can make the moving sprite say something, but I can't get it to stop moving, even when I use the freeze(&moving_sprite); command.
Is there any way to use a freeze command in a separate script to get the moving sprite to break out of its move loop? I could just kill the sprite and generate a new one on the spot and re-attach the script to that new sprite after the dialogue, but it is a very inefficient way of doing things. I can post my code later today hopefully if someone wants to take a look. Thanks!
I am writing a script that freezes a character on the screen when you touch an object. The character is moving back and forth using a goto loop, a move and a move_stop command. This script is attached to the moving sprite.
I've attached a script to a static object that should freeze the moving sprite when I touch it. I have set the touch value to 0 so it doesn't continually run the touch command while I am executing the contents. I can make the moving sprite say something, but I can't get it to stop moving, even when I use the freeze(&moving_sprite); command.
Is there any way to use a freeze command in a separate script to get the moving sprite to break out of its move loop? I could just kill the sprite and generate a new one on the spot and re-attach the script to that new sprite after the dialogue, but it is a very inefficient way of doing things. I can post my code later today hopefully if someone wants to take a look. Thanks!