It looks like you're new here. If you want to get involved, click one of these buttons!
function draw(xpos,ypos) lastx = pupsprite:getX() pupsprite = Sprite.new() local pop = Bitmap.new(Texture.new("bub.png")) pupsprite:addChild(pop) pupsprite:setPosition(xpos,ypos) stage:addChild(pupsprite) pupsprite:addEventListener(Event.MOUSE_UP, onMouseUp,pupsprite) end function onMouseUp(target, event) if target:hitTestPoint(event.x,event.y) then print("BANG") end print("OOPS") event:stopPropagation() end |
Comments
when i get rid of it everything just worked.