The Dink Network

Reply to Re: Malachi the Jerk

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:
 
 
November 4th 2013, 12:32 AM
knights.gif
DinkKiller
Peasant He/Him United States
The world could always use more heroes 
The weird thing is, I have it scripted to where it uses sp_x and sp_y and I tell it to move an exact distance so that it would fit perfectly between two other sprites. The problem is, the move command for some reason doesn't move it that exact distance, which might just be as simple as me overthinking the script and so it just doesn't like what I'm trying to tell it to do. That, or I typoed something or forgot to put something into the script. I really have no idea.

Here's a piece of the script as an example:
void main(void)
{
 sp_hard(&current_sprite, 0);
 int &x = sp_x(&current_sprite, -1);
 int &y = sp_y(&current_sprite, -1);
 int &temp;
 sp_speed(&current_sprite, 2);
 draw_hard_map();
}

void push(void)
{
 &temp = sp_dir(1, -1);
 if (&temp == 2)
 {
  freeze(1);
  sp_hard(&current_sprite, 1);
  draw_hard_map();
  &y += 44;
  move(&current_sprite, 2, &y, 0);
  wait(500);
  sp_hard(&current_sprite, 0);
  draw_hard_map();
  unfreeze(1);
 }
//etc.
}