Trying to get UI to remain on screen.
Fraggs
Member Posts: 5
Greetings Gang,
I'm trying to build some UI elements on screen and have them remain there. Normally that would be very easy but.... I have everything on my screen moving. The camera is constantly moving. It's basically a runner type of game except it goes up as we're using a top-down space shooter type design. Not sure if you're getting that. Basically your ship is traveling up a long scene with enemy ships traveling south while you try to avoid them.
Here's my issue. I want to put a distance meter on screen and I have a few ways to accomplish this.....
a) I program it on screen as normal and have it travel north the same speed as my primary ship. Not a big fan of this method, it shakes a bit and just looks bad.
b) I can put it on scene and make it not moveable via attributes but it just remains in spots and immediately scrolls off screen when my ship leaves.
So I guess I'm looking for a way to just have it appear on screen, and never leave the screen. Always remaining stationary in one spot while the rest of my game runs camera north at crazy speeds.
I appreciate any help you can provide.
-mike
I'm trying to build some UI elements on screen and have them remain there. Normally that would be very easy but.... I have everything on my screen moving. The camera is constantly moving. It's basically a runner type of game except it goes up as we're using a top-down space shooter type design. Not sure if you're getting that. Basically your ship is traveling up a long scene with enemy ships traveling south while you try to avoid them.
Here's my issue. I want to put a distance meter on screen and I have a few ways to accomplish this.....
a) I program it on screen as normal and have it travel north the same speed as my primary ship. Not a big fan of this method, it shakes a bit and just looks bad.
b) I can put it on scene and make it not moveable via attributes but it just remains in spots and immediately scrolls off screen when my ship leaves.
So I guess I'm looking for a way to just have it appear on screen, and never leave the screen. Always remaining stationary in one spot while the rest of my game runs camera north at crazy speeds.
I appreciate any help you can provide.
-mike
Best Answer
-
jonmulcahy Posts: 10,408put it in it's own layer in the bottom most left of you viewable area, and then uncheck scrollable in the layers option. that will keep it on screen 100% of the time.
it has to be in the bottom left because that's the area that gets locked.
Answers