Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Event Problem [Solved] — Gideros Forum

Event Problem [Solved]

kontinyukontinyu Member
edited July 2012 in General questions
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
I've got this code, all i need is touch and object. then get its coordinates. right now i cant even touch it.
I'm a complete newb so i'm sure it's something easy and obvious.
thx in advance.

Comments

Sign In or Register to comment.