The Dink Network

Reply to Sprite Won't Spawn

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 7th 2016, 01:42 PM
boncag.gif
JugglingDink
Peasant He/Him United Kingdom
Streetfish 
So perhaps I'm dense, but can anybody figure out why the create_sprite() chunk at the bottom isn't working? I tried making a new variable for it instead of reusing &shad, but it still didn't appear.

I'm stumped.

&spx = sp_x(1, -1);
&spy = sp_y(1, -1);
&spx += 7;
&spy += 2;
sp_x(&shad, &spx);
sp_y(&shad, &spy);

&spx -= 7;
&spy += 18;
sp_seq(¤t_sprite, 512);
sp_x(¤t_sprite, &spx);
move_stop(¤t_sprite, 2, &spy, 1);
sp_nodraw(¤t_sprite, 1);

&spx -= 15;
&spy -= 35;
sp_nodraw(&shad, 1);
sp_active(&shad, 0);

&shad = create_sprite(&spx, &spy, 7, 167, 1);
sp_que(&shad, -100);
sp_seq(&shad, 7);
sp_touch_damage(&shad, 35);
playsound(24, 22050, 0, 0, 0);
sp_active(¤t_sprite, 0);
kill_this_task();


This is an excerpt from a larger script, by the way. All the variables definitely initialise properly.

EDIT: Nevermind, don't mind me! Literally solved it within a minute of posting I swear I'd been stumped for forever as well... Dude.