Help with my latest project on sensing and scoring!
When I command my sprite to glide to an object and once it touches it, it will score 1 mark. However, I don't know how to make this 1 mark. It either gets 1 mark continuously or no mark! HELP!!!
The either two scripts that I've made:
when gf clicked if <color [orange] is touching [olive]>? broadcast [good v] endThen,
when i receive [good v] play sound [pop v] change [score v] by [1] change [total score v] by [1]Another:
when gf clicked forever repeat [1] if <color [orange] is touching [olive]>? change [score v] by [1] change [total score v] by [1] end end
Offline
First off you don't need that repeat. But anyway if you have one sprite that needs to touch "olive" then just have a script in the touching one to say:
when gf clicked forever if <touching [olive v]?> play sound [pop v] change [score v] by (1) change [total score v] by (1) wait until <not <touching [olive v]?>>if it's a lot of sprites then you dupe the script
Offline