We will entertain your mind, enhance your brain, expand your lifestyle.

Character Controller

In the previous article, we wrote about the display control of the opening and game UI, but we couldn’t get it to display properly using layers or priority control. In the end, we decided to move the UI to the second display while the movie was playing. We even confirmed that it worked on actual iOS devices.

As a continuation of the implementation of the opening sequence, we added a process to move the player to a new stage after solving some puzzles. It worked well up to the point where we inserted movies in between, but the player wouldn’t actually move.

We thought it would be enough to simply change the coordinates of the player object, but this interfered with the character controller, which controls the player object through user input, making it impossible to move.

After much consideration, we found that the solution was to disable/enable the character controller before and after movement to prevent interference.