how can i give a specific offset in the code for box constrained to camera?

chicopchicop Member Posts: 263
edited November -1 in Working with GS (Mac)
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

Comments

  • HachikoHachiko Member Posts: 330
    You can add the offset to that.
    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 :)
  • chicopchicop Member Posts: 263
    most awesome thanks!
Sign In or Register to comment.