The Dink Network

Reply to Re: add_exp display issue

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:
 
 
August 25th 2006, 01:45 PM
knightg.gif
cypry
Peasant He/Him Romania
Chop your own wood, and it will warm you twice. 
I don't know if this will help, but you could use a small trick, to avoid using the sp_exp command.

int &monsterx = sp_x(&missile_target,-1);
int &monstery = sp_y(&missile_target,-1);
int &bang = create_sprite(&monsterx,&monstery,0,0,0);
sp_nodraw(&bang,1);
sp_strength(&bang,20);//set here the damage
sp_brain(&bang,17);

This will create an invisible projectile, that will hurt the monster, and if the monster is hurt by this, he will know dink hit him.