Is there any way to make the menu-in-sence to stay with camera ?
vectorstudio
Member Posts: 50
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
put the menu in its own layer and uncheck scrollable. it will lock the menu items to the camera.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
I tried like this . but the button did not display in the game
I did like this. I am puzzeled.
http://blog.sina.com.cn/s/blog_492a9c1f0102vwu8.html
You need to place the actors in the bottom left side of the screen.
Edit: example
Fortuna Infortuna Forti Una
Thank you very much. Problem solved just like you told me.