The Dink Network

Reply to Re: need some help

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:
 
 
July 28th 2010, 05:47 PM
anon.gif
developer
Ghost They/Them
 
just for testing purposes, i have now done this:

void main(void)
{
int &direction;
&location = sp_x(&current_sprite, -1);
sp_speed(&current_sprite, 1);
sp_hard(&current_sprite, 0);
draw_hard_map();
}

void push(void)
{
if (&location > 350)
{
move(&current_sprite, 6, 400, 1);
draw_hard_map();
}

if (&location < 351)
{
move(&current_sprite, 6, 355, 1);
draw_hard_map();
&location += 5;
}
}


i have checked and when pushing it the first time, &location has value 355. but the script never runs this part when pushed for the second time:

void push(void)
{
if (&location > 350)
{
move(&current_sprite, 6, 400, 1);
draw_hard_map();
}


i have worked with some editors before but this engine doesnt seem to make much sense...