The Dink Network

Reply to Re: Dink RTS tech demo

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:
 
 
June 3rd 2019, 01:29 PM
slayer.gif
Exzcimus
Peasant He/Him Philippines
Change is constant, but Constants do not change. 
Hey, uh... how do you make touchers hurt the other enemies without hurting the player. I saw boncas target and hit pillbugs but those pillbugs cant hurt the bonca. sp_touch_damage only sets the damage when dink touches them.

//my silly uneducated idea

void td( void )
{

hurt(&current_sprite, 1);
}
//this is called externally by another script that uses this code when it is touched.

The problem is the active sprite seems to take the damage only when dink touches it.

Also, I've tried the "MouseDink dev's demonstration" where i saw that you can control the cursor sprite by the mouse, not by arrow keys.

I just dont get how to make mine like THAT.

Any form of help will be much appreciated. So, any ideas?

BTW, im sooooo busy.