change from move() to target()
I have these guys moving across the screen. If a condition is met, I want them to attack dink. but they continue until they reach the move destination first. How can I break the move() and start the attack ?
//
move(&current_sprite,6,700,1);
if(&evil < 10)
{
unfreeze(&current_sprite);
sp_target(&current_sprite,1);
}
//
//
move(&current_sprite,6,700,1);
if(&evil < 10)
{
unfreeze(&current_sprite);
sp_target(&current_sprite,1);
}
//
Try:
move(&current_sprite, 2, 0, 1);
Since they will always be south (2) of the top of the screen (0) they should stop right way.
move(&current_sprite, 2, 0, 1);
Since they will always be south (2) of the top of the screen (0) they should stop right way.
ya, that worked. I had tried something similar with no luck, but this is good. thanks
the &current_sprite bug on the board should be fixed.
Teach people to write & OR have redink1 make a script to do so automatically.