The Dink Network

Scripting problem

November 18th 2007, 05:59 PM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
I've begun on a little project that may turn up really cool. However I have some problems with an enemy script... I want the goblins with hammers to throw their hammers (the flying hammer graphics from the Dink graphic source). This just gets really messy for me and it won't show in some directions and such. If someone thinks they can fix it, I would appreciate it.
November 18th 2007, 11:50 PM
burntree.gif
fireball5
Peasant He/Him Australia
Let me heat that up for you... 
make sure you have graphics for all directions. then make sure the script works properly. don't forget to check dink.ini and make sure that everything is fine.

if you need scripting help, check out the throwing axe script. also, SOB has a hammer throwing weapon, the 'hammer of truth" if i remember correctly. it may be helpful to check out how it is done.
November 19th 2007, 02:44 AM
anon.gif
Marpro
Ghost They/Them
 
Got it working
November 21st 2007, 07:46 AM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
Got a problem again... I want a sprite to be created on the &current_sprite's sp_x and sp_y. But it doesn't appear on the &current_sprite but up in the left corner... Why?

Here's a part of the script by the way:

&duck_x = sp_x(&current_sprite, -1);
&duck_y = sp_y(&current_sprite, -1);
int &bombzor = create_sprite(&duck_x, &duck_y, 0, xxx, x);
sp_script(&bombzor, "dam-duck");
November 21st 2007, 11:18 AM
spike.gif
int &duck_x;
int &duck_y;