The Dink Network

Reply to Re: sp_custom

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:
 
 
February 26th 2008, 05:30 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Couldn't you set the sequence/frame where you set the x/y? I think messing with the editor type would mess things up. If you really need to save the direction they died in then you can make the editor_frame() act as a supervar.

//example
int &crap = sp_x(&current_sprite, -1);
&crap *= 1000;
int &crap2 = sp_y(&current_sprite, -1);
&crap += &crap2;
editor_frame(&current_sprite, &crap);

//main procedure
//extracting the x,y
int &crap = editor_frame(&current_sprite, -1);
int &crap2 = &crap;
&crap /= 1000;
sp_x(&current_sprite, &crap);
&crap *= 1000;
&crap2 -= &crap;
sp_y(&current_sprite, &crap2);

//end of scripting

This way you can use editor_seq() for the sequence of the death.