TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
increase score only by 1
Pages:
1
increase score only by 1
freyguy
Posts: 92
May 29, 2015, 05:34:08 pm
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
May 29, 2015, 05:53:40 pm
The easiest way is to kill off the score target, or swap it with a collision-free image.
freyguy
Posts: 92
May 29, 2015, 06:27:48 pm
sweet thanks
megagewinnspiel
Posts: 396
May 30, 2015, 12:57:31 pm
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.
Pages:
1