Hello
i am trying to get 1 score at a contact
with the sample script you keep getting scores when you touch a object
but i want it that if you touch a object you get 1 score and not that it loops it
a timer should help i think
but i can't figure out how it works
i was thinking that when you hit a object a timer start for three seconds en than you can get a another score
i totally failed with this
can someone help me?
gr. Ron
sorry for my bad english
i am trying to get 1 score at a contact
with the sample script you keep getting scores when you touch a object
but i want it that if you touch a object you get 1 score and not that it loops it
a timer should help i think
but i can't figure out how it works
i was thinking that when you hit a object a timer start for three seconds en than you can get a another score
i totally failed with this
Code: [Select]
float Score = 0;
void Main()
{
if (IN_22 > 0)
{
iObjectStop(OBJ_22);
Score = Score + 1;
iObjectStart(OBJ_44);
}
if (IN_44 == 180)
{
iObjectStart(OBJ_22);
iObjectReset(OBJ_22);
iObjectStop(OBJ_44);
iObjectReset(OBJ_44);
}
OUT_0 = Score;
}
the score on top of the screen walks up to 179 can someone help me?
gr. Ron
sorry for my bad english