Reply to Sprite won't move...
If you don't have an account, just leave the password field blank.
void main( void )
{
int &dir;
int &xie;
int &yie;
sp_speed(¤t_sprite, 2);
}
void push( void )
{
freeze(1);
&dir = sp_dir(1, -1);
&xie = sp_x(¤t_sprite, -1);
&yie = sp_y(¤t_sprite, -1);
if (&dir == 2)
{
&yie += 50;
}
if (&dir == 4)
{
&xie -= 50;
}
if (&dir == 6)
{
&xie += 50;
}
if (&dir == 8)
{
&yie -= 50;
}
sp_hard(¤t_sprite, 1);
draw_hard_sprite(¤t_sprite);
if (&dir == 2)
{
move_stop(¤t_sprite , 2 , &yie , 1);
}
if (&dir == 4)
{
move_stop(¤t_sprite , 4 , &xie , 1);
}
if (&dir == 6)
{
move_stop(¤t_sprite , 6 , &xie , 1);
}
if (&dir == 8)
{
move_stop(¤t_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.
{
int &dir;
int &xie;
int &yie;
sp_speed(¤t_sprite, 2);
}
void push( void )
{
freeze(1);
&dir = sp_dir(1, -1);
&xie = sp_x(¤t_sprite, -1);
&yie = sp_y(¤t_sprite, -1);
if (&dir == 2)
{
&yie += 50;
}
if (&dir == 4)
{
&xie -= 50;
}
if (&dir == 6)
{
&xie += 50;
}
if (&dir == 8)
{
&yie -= 50;
}
sp_hard(¤t_sprite, 1);
draw_hard_sprite(¤t_sprite);
if (&dir == 2)
{
move_stop(¤t_sprite , 2 , &yie , 1);
}
if (&dir == 4)
{
move_stop(¤t_sprite , 4 , &xie , 1);
}
if (&dir == 6)
{
move_stop(¤t_sprite , 6 , &xie , 1);
}
if (&dir == 8)
{
move_stop(¤t_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.