Using SKIP with Python

Hello. I’m struggling with programming because I came from artistic background. I need help with a script.

I’m trying to set up an enemy shooting my player. However it shoots continuously.

I would like to learn how to set up SKIP using Python.

Thank you! :slight_smile:

just use a delay sensor, or use a counter inside your python

if own['Counter']<=29:
    own['Counter']+=1
else:
    own['Counter']=0
    own.scene.addObject('Projectile',own,220)

this requires that you add the property ‘Counter’ to the enemy.

Got it. Thank you! :slight_smile: