Ok, so I've made this maze, and each time the character picks up a cookie, the score goes up. The maximum score is 4, and I want so when all the cookies have been taken, a sprite that blocks the exit opens.
Any ideas?
this is my code already on the sprite thats blocking the exit
when gf clicked if <(score) = [4]> hide end
Offline
djtirex wrote:
Ok, so I've made this maze, and each time the character picks up a cookie, the score goes up. The maximum score is 4, and I want so when all the cookies have been taken, a sprite that blocks the exit opens.
Any ideas?
this is my code already on the sprite thats blocking the exitwhen gf clicked if <(score) = [4]> hide end
Um, I think that this belongs in project ideas.
Offline
Perhaps you should make it:
when gf clicked forever if <(score)=[4]> hideHope this helps.
Offline
Tohmis wrote:
Maybe like this?
When gf clicked hide wait until <(score)=[4]> showhope it helps
You had the hide and show mixed up
When gf clicked show wait until <(score)=[4]> hideEither this or the above example would work
Offline