Page 2 of 2

PostPosted: Tue Nov 28, 2006 1:10 am
by Game A Gogo
Game A Gogo wrote:make it
Code: Select all
if(score<200)

not
Code: Select all
if{score<200}

if thats not it, then i must be blind, (its hard to see because of the BG of the window)


ok, just took a closer look, and they are ( ) and not { }, sorry.

PostPosted: Tue Nov 28, 2006 7:00 am
by Diana Kennedy
Oh, my head smokes...Okay, I will try out the last.

And as for the question "score" is the actors name that displays the score. A text actor.

Thank you so much for looking into this.

PostPosted: Tue Nov 28, 2006 7:38 am
by Fuzzy
Thats it! you have to say (score.textNumber > 500)

PostPosted: Wed Nov 29, 2006 12:03 am
by Game A Gogo
Diana Kennedy wrote:Oh, my head smokes...Okay, I will try out the last.

And as for the question "score" is the actors name that displays the score. A text actor.

Thank you so much for looking into this.

yeah, what he says.

PostPosted: Sat Dec 23, 2006 12:21 am
by Diana Kennedy
Still struggling with this.

Now I tried this code:

Code: Select all
if (score.textNumber>=3000)
CreateActor("platin", "platin", "(none)", "(none)", -47, -49, true);


else if (score.textNumber<3000)
CreateActor("gold", "gold", "(none)", "(none)", -47, -49, true);

else if (score.textNumber<2000)
CreateActor("tin", "tin", "(none)", "(none)", -47, -49, true);


It works with the platin and the gold medal, but not for the tin. gold is displayed when tin should come.

To remember: "score" is a text actor...

PostPosted: Sat Dec 23, 2006 12:27 am
by Game A Gogo
use this code insted:
Code: Select all
if (score.textNumber>=3000)CreateActor("platin", "platin", "(none)", "(none)", -47, -49, true);


else if (score.textNumber<3000 && score.textNumber<2000)CreateActor("gold", "gold", "(none)", "(none)", -47, -49, true);

else if (score.textNumber<2000)CreateActor("tin", "tin", "(none)", "(none)", -47, -49, true);

PostPosted: Sat Dec 23, 2006 12:45 am
by makslane
Code: Select all
...
else if (score.textNumber > 2000 && score.textNumber < 3000)
{
  CreateActor("gold", "gold", "(none)", "(none)", -47, -49, true);
}
...

PostPosted: Sat Dec 23, 2006 12:55 am
by Game A Gogo
oh, sorry, my bad :x

PostPosted: Sat Dec 23, 2006 10:32 pm
by Diana Kennedy
Hm... I well, I tried:

Code: Select all
if (score.textNumber>=3000)CreateActor("platin", "platin", "(none)", "(none)", -47, -49, true);

else if (score.textNumber > 2000 && score.textNumber < 3000)
{
  CreateActor("gold", "gold", "(none)", "(none)", -47, -49, true);
}

else if (score.textNumber<2000)CreateActor("tin", "tin", "(none)", "(none)", -47, -49, true);


It now works for the tin medall and the platin buut not for the gold. Tin comes even when score higher than 1000