Is there any way to make the menu-in-sence to stay with camera ?

I want to make a menu in sence. My map is very big, and my camera is moving following the actor, then how can I make the menu buttons stay with the camera ?

I have done like this. I made a layer,an put the menu button in the layer. Then I made rules like this:
constrain attribute self.position.x=sence.camera.origin.x+70
constrain attribute self.position.y=sence.camera.origin.y+10
So the menu bottun can stay with the camera.

I am wondering if there are better ways to do the same effect. Please help me. Thanks!!

Comments

Sign In or Register to comment.