The Dink Network

Reply to Sprite won't move...

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 28th 2005, 04:09 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
void main( void )
{
int &dir;
int &xie;
int &yie;
sp_speed(&current_sprite, 2);
}

void push( void )
{
freeze(1);
&dir = sp_dir(1, -1);
&xie = sp_x(&current_sprite, -1);
&yie = sp_y(&current_sprite, -1);
if (&dir == 2)
{
&yie += 50;
}
if (&dir == 4)
{
&xie -= 50;
}
if (&dir == 6)
{
&xie += 50;
}
if (&dir == 8)
{
&yie -= 50;
}
sp_hard(&current_sprite, 1);
draw_hard_sprite(&current_sprite);
if (&dir == 2)
{
move_stop(&current_sprite , 2 , &yie , 1);
}
if (&dir == 4)
{
move_stop(&current_sprite , 4 , &xie , 1);
}
if (&dir == 6)
{
move_stop(&current_sprite , 6 , &xie , 1);
}
if (&dir == 8)
{
move_stop(&current_sprite , 8 , &yie , 1);
}
//more stuff here, but it's stuck with the movement command.

Can anyone explain why it won't move.
I've set the hardness off, gave it a speed, and every movement is "nohard". I can't see what should go wrong.

It's the ReDink v0.04 ReDMod.exe, by the way, not the original Dink.exe.