Re: sp(#); troubles
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?
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?
Tried that. It still didn't work.