score problems
Posted: Sat May 26, 2007 4:12 pm
ok, i am making a 2 - 4 player game, the aim of the game is to beat the other player (by shooting him). first i tried giving each player health, i gave them 100 health and each time they were shot they would lose 10 health. except for some reason when u shoot him 6 times the player would die. so i decided to ditch that idea.
so now, i am using a scoreing system. i created an actor for the score image (rather than using text). so i made two variables, score1 and score2. (these are actor variables). then on the actor control for the score i put:
add event>create actor>script editor
then i put:
add event>draw actor>script editor
then when i go to game mode it will put it straight to 1 instead of keeping it at 0.
how can i do a scoring system better? or how can i fix this problem?
so now, i am using a scoreing system. i created an actor for the score image (rather than using text). so i made two variables, score1 and score2. (these are actor variables). then on the actor control for the score i put:
add event>create actor>script editor
- Code: Select all
score = 0;
then i put:
add event>draw actor>script editor
- Code: Select all
if(score2 = 1)
{
ChangeAnimation("scoretwo", "score1", NO_CHANGE);
}
then when i go to game mode it will put it straight to 1 instead of keeping it at 0.
how can i do a scoring system better? or how can i fix this problem?