The Dink Network

sp(#); troubles

January 26th 2008, 10:26 PM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
This has happened a lot in the past, and it's happening now. I'm trying to apply a variable (if that's what you call it) to a sprite from a script attached to another sprite. This is what I'm doing:

int &inv1 = sp(4);
int &inv2 = sp(5);

sp_hard(&inv1, 1);
sp_hard(&inv2, 1);

draw_hard_map();

Thing is, the sprites aren't hard. I can walk straight through them. What am I doing wrong?

I tried:

draw_hard_sprite(&inv1);
draw_hard_sprite(&inv2);

draw_hard_map();

But that didn't work either. Can you only do the
&var = sp(#);
trick when using a global variable? That could be it, but I'm not sure. So, ideas, anyone?
January 26th 2008, 11:19 PM
spike.gif
Nothing wrong with the commands. Silly mistake.
January 26th 2008, 11:22 PM
fairy.gif
Someone
Peasant He/Him Australia
 
set sp_hard to zero for hardness, it's backwards.
January 28th 2008, 03:19 AM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
Tried that. It still didn't work.