Having problems with game scores. Simple shooting and asteroid games. Score set to increase by 1 but jumps by between 1 and 5. Any help please.
Offline
stephenmstrain wrote:
Having problems with game scores. Simple shooting and asteroid games. Score set to increase by 1 but jumps by between 1 and 5. Any help please.
Is your script like this? :
when gf clicked set [Score v] to [0] forever if <touching [asteroid v] ?> change [Score v] by (1) endIf it is, change it to this:
when gf clicked set [Score v] to [0] forever if <touching [asteroid v] ?> change [Score v] by (1) wait until <not <touching [asteroid v] ?>> // Add this endIt is so that it would not increase more than once until it touches the asteroid again.
Last edited by jontmy00 (2012-05-01 07:31:40)
Offline
jontmy, there is a problem with that script. I have it in my game, Air raid (play it!), and if another missile touches the plane, it loses health even though it waits.
Offline
Firedrake969 wrote:
jontmy, there is a problem with that script. I have it in my game, Air raid (play it!), and if another missile touches the plane, it loses health even though it waits.
Your link is invalid. The link you meant: Air raid (play it!)
Offline
Firedrake969 wrote:
jontmy, there is a problem with that script. I have it in my game, Air raid (play it!), and if another missile touches the plane, it loses health even though it waits.
I can't identify the problem as it works fine.
Offline