GAM 704 - UI
- thisnameexists
- Jul 10, 2021
- 1 min read
The next thing i planed on doing, was the UI design and template. This was going to be used at the control pillars to move and rotate each level piece. The first version of the UI didnt have the ability to rotate because i didnt know if i could program that in.

After i got the UI working and showing on screen when I pressed a button. I had to add the functionality into it. To start with i just wanted to see if i can move a piece of level to the location it needs to be. After I got that down and working I made each button work for each piece. This version of the Control pillar is going to be a developer tool because you can only move the level pieces to the correct place. However I got it to work which meant i had proof of concept. but I wanted to try and make it how I designed it.
Each button used this code with each level chunk swapped out.

Due to not being a programmer or very good at programming, the way I got all the level pieces to move where the player wanted was by have 9 control pillars. Each control pillar would have the same UI but move only one level piece. This meant the player would have to walk around the outside of the level to the control pillar they wanted. This wasn't the original plan but im happy i got it to work in some way at the end.
Rotate Level Code

Comments