The Dink Network

Reply to Re: Moving sprite damaging other sprites

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
May 26th 2009, 12:54 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Use brain 11 anyway, but use sp_mx and sp_my (or sp_move_x and sp_move_y) for movement, like how it's done in the fireball script.

Only dink can trigger the touch() procedure, but anything will trigger the damage() procedure. I don't know if damage() suffers from the same issue as touch(), i.e. if it keeps running as long as it detects that it's being triggered. The fix for touch is to set sp_touch_damage() to -1, not sure how to do it if the same thing happens with missiles. Probably set sp_brain() to 0 or something, and back to missile brain when done.