91
Ask a Question / Making something appear and stay on screen
« on: February 20, 2012, 09:59:16 am »
I'm trying to make a persistent sidebar for a game I'm working on, wherein the scene it's self is larger than just the screen. So, I want it to appear at a specific location relative to the camera, and stay in that spot.
Unfortunately, the X/Y measurements refer to the scene rather than camera, and inputting "X/Y of camera" for the X/Y values just makes it spawn and stay in the top left corner of the scene. I thought maybe the 'screen space' command might work since it works on text, but then found that I apparently can't use it outside of the 'when drawing' and putting the 'set X/Y' command inside the 'when drawing' section does not do anything.
What do I have to do to get the menu to get to the spot where I need it and stay there?
Unfortunately, the X/Y measurements refer to the scene rather than camera, and inputting "X/Y of camera" for the X/Y values just makes it spawn and stay in the top left corner of the scene. I thought maybe the 'screen space' command might work since it works on text, but then found that I apparently can't use it outside of the 'when drawing' and putting the 'set X/Y' command inside the 'when drawing' section does not do anything.
What do I have to do to get the menu to get to the spot where I need it and stay there?