Have you experienced a thing I'm living on? I have a sprite that has the following:
self:removeEventListener(Event.ENTER_FRAME, self.onShipFire, self)
if self:hitTestPoint(event.x, event.y) then
self:addEventListener(Event.ENTER_FRAME, self.onShipFire, self)
local x, y = self:getPosition()
x = x + self:getWidth()/2
self.shot = Fire.new("objects/ship/fire_1.png", -30, 0, x, y)
on the other sprite I have:
if self.ship.shot:collidesWith(self) then
self.damaged += 1
What i want: When I mouse down, is for the valuess to update, but it's not what's going on, the value just updates AFTER I MOUSE UP. I have no any idea why It happens I don't find any argument why It's happening.
Help me please.