The Dink Network

Reply to Re: pushing things

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:
 
 
August 25th 2004, 01:55 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
If Dink is showing his push animation, things work just fine, but then it's the script. Here's an example push script:

void main( void )
{
int &mydir;
}

void push( void )
{
&mydir = sp_dir(1, -1);
if (&mydir != 6)
{
say("I can't push from this direction",1);
}
sp_hard(&current_sprite, 1);
draw_hard_sprite(&current_sprite);
move_stop(&current_sprite, 6, 400, 1);
sp_hard(&current_sprite, 0);
draw_hard_sprite(&current_sprite);
}

Make sure, though, that you've set push_active(1); somewhere, and that it's still 1