Today I started working on some filling gauges, and simple things I was making in actionscript are quite hard for me to do with ZGameEditor, so I have some questions for you...
In this stripped down example, you can move the circle on the Y axis and the gauge moves up to the circle position. How would you do to know that you clicked the circle instead of moving it wherever you clicked on the screen?
Also right now, the circle moves to the mouse position with this very approximate expression:
Code: Select all
currentModel.Position.Y = App.MousePosition.Y*(app.cameraPosition.z-currentModel.Position.z)/2.5;
Thanks for your help