Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am using e.stageX and e.stageY to locate the user tap, only I have a vcam that constantly changes the view, until eventually off the stage. Is there another way to do this? Like e.SomeMovieclip.x or e.SomeMovieclip.y?

(I am using these in TouchEvents)

share|improve this question
plz i need this app finished january 30th! – Abe Jan 27 at 15:00

1 Answer

credits to Johan Lindkvist

touchX = e.stageX + rel2value;
touchY = e.stageY + vcam.y - relvalue;

rel2value changes when the player goes left and right

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.