how can i give a specific offset in the code for box constrained to camera?
chicop
Member Posts: 263
Hi there
I have a menu box constrained to the camera movement origin... how ever it snaps to X-0 and Y-0
how can i give it a specific offset in the code?
so constrain.self.x to scene.camera.x but the i need to figure out to add + so and so many pixels sort of thing?
any help is appreciated
thanks
I have a menu box constrained to the camera movement origin... how ever it snaps to X-0 and Y-0
how can i give it a specific offset in the code?
so constrain.self.x to scene.camera.x but the i need to figure out to add + so and so many pixels sort of thing?
any help is appreciated
thanks
Comments
Like, if you want it to be at 50 pixel more of the camera, you do constrain self.x to scene.camera.x+50, and that's true for the y as well