The Dink Network

Sprite Won't Spawn

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.
January 7th 2016, 03:08 PM
wizardb.gif
Bluedy
Peasant He/Him Romania bloop rumble
I like Frutti Fresh 
sp_active(¤t_sprite, 0);


what is the ¤ supposed to be?
January 7th 2016, 03:22 PM
peasantmp.gif
Skurn
Peasant He/Him Equatorial Guinea duck bloop
can't flim flam the glim glam 
&current. Stupid Donk Network turns it into some currencyssymbol or some shit.

Or something.
January 7th 2016, 05:18 PM
burntree.gif
You need to set the sequence to 167, not 7; Then set the brain to 7.

sp_seq(&shad, 167);
sp_brain(&shad, 7);

also you might benefit from a:

preload_seq(167);

somewhere near the start of the script.