The Dink Network

Reply to Re: save_x and save_y

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:
 
 
September 17th 2008, 06:37 PM
dinkdead.gif
You can use &current_sprite in emake.c because it's called using external() from a script that is attached to a sprite, so using globals is unnecessary.

Basically, think of emake.c as if it is attached to the sprite that just died.

Instead of carrying the x & y positions across in globals, just put sp_x(&current_sprite, -1); in emake.c instead of in the sprite's script and it will work.

Hope that makes sense