increase score only by 1

freyguy

  • Posts: 92
everytime the player hits an actor (collision sensor) it increases the score until the actor is not touching the actor anymore o the score goes up by 20 not 1. thanks   picture below is what i have its in a actor-type event.

dtrungle

  • Posts: 1938
The easiest way is to kill off the score target, or swap it with a collision-free image.

freyguy

  • Posts: 92

megagewinnspiel

  • Posts: 396
Also possible would it be with a boolean attribute. Just do it like this when the actor hits a target:

if (boolean==true) {
     boolean = false;
     score++;
}
 else {
boolean = true;
}

If you want it to jut get fired once, remove the else part.