How do I get event.target in screen coordinates?

Hi!

I’m working with a pop-up interface for a base in my game and I want the interface to be relative to the event.target rather than the event.

Using event.x and y I get the screen coordinates but the targets coordinates are relative to its world position (and group I suppose). I’ve tried using localToContent and contentToLocal but had little success mainly because I don’t really understand how they work.

Regards
info583 [import]uid: 129450 topic_id: 25119 reply_id: 325119[/import]

Have you tried…

event.target.x  
event.target.y  

You probably have, just making sure [import]uid: 84637 topic_id: 25119 reply_id: 102160[/import]

Thanks for the answer Danny!

Yes I have, sorry for not being more detailed in my initial post.

this is what i get from from printing event.x, event.target.x

413, 2955

What I need is even.target.x in screen coordinates just as event.x. The target in this case is a sprite that’s in a displayGroup within a displayGroup that is inserted in my screenGroup (= self.view) if that helps.

[import]uid: 129450 topic_id: 25119 reply_id: 102246[/import]