The Dink Network

Reply to Problems with poles

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 7th 2007, 03:41 PM
pq_skull.gif
Nicco
Peasant He/Him Netherlands
The only one, Nicco 
Well, I'm creating a kind of maze where you need to hit different poles in a kind of order. When I made this script and tested it I got confronted with a problem...
When I want to keep the pole (Sequence 425) at Frame 1 it seems to scroll to Frame 6 when I enter the screen. I tried a few things to solve this problem but it's still scrolling to Seq 425 Frame 6

Here is the script.
Note that &poles is a global variable

void main (void)
{
if (&poles > 0)
{
sp_seq(&current_sprite, 425);
sp_frame(&current_sprite, 6);
}

if (&poles == 0)
{
sp_seq(&current_sprite, 425);
sp_frame(&current_sprite, 1);
}

}

void talk (void)
{
say("A strange looking pole.", 1);
}

void hit (void)
{
&poles = 1;
sp_seq(&current_sprite, 425);
sp_frame(&current_sprite, 6);
}


Anyone knows how to fix this?
Thanks in advance