Reply to Re: Talking
If you don't have an account, just leave the password field blank.
First problem: you're missing a ton of brackets and ; after freeze(1) and freeze(¤t_sprite)
like this:
freeze(1);
unfreeze(¤t_sprite);
Second problem: if (&story <= 2) stands for "if story is 2 or less than 2"
it's simple math.
< means less than
> means more than
= means the same as
if you want the knights to appear only when the story is 2, you use
if (&story == 2) why you need two ==, I don't know, it's a c thing. but you do.
if you want them to appear when the story is 2 or more, you can use
if (&story >= 2)
or
if (&story > 1)
like this:
freeze(1);
unfreeze(¤t_sprite);
Second problem: if (&story <= 2) stands for "if story is 2 or less than 2"
it's simple math.
< means less than
> means more than
= means the same as
if you want the knights to appear only when the story is 2, you use
if (&story == 2) why you need two ==, I don't know, it's a c thing. but you do.
if you want them to appear when the story is 2 or more, you can use
if (&story >= 2)
or
if (&story > 1)