The Dink Network

Nicco's Profile

pq_skull.gif
Nicco
Peasant He/Him Netherlands
The only one, Nicco 
I am Nicco, I'm 14 years old and I live in the Netherlands. Before I started with Dink I played 1,5 year an online game: Myth War. But the game began to suck and got more and more bugs so I searched for an another funny game to play and ended up here
Currently working on 1st D-Mod and hope to finish it on a day

Private Message

2007-11-07 15:41:14
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