Hi.. i am having problems with creating wait time..before another cannon ball can be shot.. I have set my firing cannon balls on spacebar pressed..and i have set a wait time..and have also set an instance variable..on the player cannon balls....
so here whats my events look like
+keyboard On space pressed - wait 1 sec
+player cannon ball = 0 - Spawn a player cannonball
- Set cannon to 1
+playercannon cannon= 1 - wait 2 seconds
- Set cannon to 0
so basically what i want to do is fire the next cannon ball after 2 seconds from the previous cannonball was fired was fired...above events helps to create a delay..but if i keep tapping space continously..it fires the cannonballs without any delays..
here's a capx.
dl.dropbox.com/u/67865856/prototype_Avichal_2.1.capx