The Dink Network

Reply to sp(#); troubles

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:
 
 
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?