Bookkeeper help:


#1

help, I don’t know what wrong with my code.
time = self.now()
enemy = self.findNearestEnemy()
enemykilled = 0
coin = self.findNearestItem()
coincollected = 0
if time < 15:
if enemy:
self.attack(enemy)
enemykilled += 1
else:
self.shield()
if time > 15:
self.moveXY(59, 33)
self.say(enemykilled)
if time < 30 and time > 15:
if coin:
coinX = coin.pos.x
coinY = coin.pos.y
self.moveXY(coinX, coinY)
coincollected += 1
self.moveXY(59, 33)
self.say(coincollected)
if time < 45 and time > 30:
enemykilled = 0
self.attack(enemy)
enemykilled += 1
self.moveXY(59, 33)
self.say(enemykilled)


#2

double post, please delete