The Dink Network

change from move() to target()

March 14th 2003, 08:37 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
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);
}
//
March 14th 2003, 09:32 PM
wizardg.gif
Paul
Peasant He/Him United States
 
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.
March 14th 2003, 09:55 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
ya, that worked. I had tried something similar with no luck, but this is good. thanks
March 15th 2003, 12:20 AM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
the &current_sprite bug on the board should be fixed.
March 15th 2003, 01:07 AM
wizardb.gif
Phoenix
Peasant He/Him Norway
Back from the ashes 
Teach people to write & OR have redink1 make a script to do so automatically.
March 15th 2003, 09:41 AM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
I fixed it I said. I went into the script and rewrote it...bunghole