The Dink Network

Sprite hardness in script?

July 5th 2005, 02:33 AM
anon.gif
Jojje
Ghost They/Them
 
If i create a sprite in a script by the create_sprite method, what should i add to make it hard? I'm adding a roadblock in my DMOD so that you cannot pass the barrier unless you have Level 2 or more.
July 5th 2005, 05:21 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
int &sprite = create_sprite(x,y,brain,seq,frame);
sp_hard(&sprite, 0);

and then:

draw_hard_sprite(&sprite);

or

draw_hard_map();
July 5th 2005, 08:12 AM
anon.gif
Jojje
Ghost They/Them
 
Thanks, but i found out another way. I might use your script sometime later in my DMOD though.