The Dink Network

A rhetorical question

June 27th 2005, 03:52 PM
goblinm.gif
I had the following in a script, what on earth could have been wrong with it?

void hit( void )
{
hurt(&current_sprite, 1);
}

Whoops.

(For those not familiar with "hurt", this is an infinite loop.)

I found a fix for this, but I also found out that the hurt command seems to only do the random 0 or 1 on Dink, and not on his enemies. So be sure to set your damage > defense, folks.
June 27th 2005, 07:49 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Add a wait() somewhere and an if condition and you've got yourself a goto-less while loop that loops a certain procedure
June 27th 2005, 09:07 PM
goblinm.gif
Lol, brilliant!
June 27th 2005, 09:11 PM
duck.gif
rp64
Peasant He/Him
 
I dont understand... ANY OF THAT!! lol