Working on the second sprint. I was given a task to create a credits screen. The credits should have both text and images and player should be able to scroll by using controller. I also think it is a good idea to start the scrolling down automatically or after certain time interval when idle. I am going through some text rendering tutorials. I am also hoping to build it as one of the game states and be one of the clickable options on the intro screen.
IMPLEMENTATION
I built Timer class that is driven by the Update method, every team member has his own page, this is taken care of by the Page class, all is tied up inside the CreditsScreen class. I was not able to reset XUI effects like that I was planning for pages to have fade in/out transitions. I just declared another Timer object that scrolls page up/down for a half a second and then it flips up/down the page. There was a problem that if you hold thumb-stick it will just start flipping pages too fast. I timed flipping with another Timer object that even if you hold thumb-stick it will flip pages only like every half a second.
Here is the screen recording of the credits page. If you don't touch the thumbstick up/down it will scroll up automaticaly after 5 seconds. If you move thumbstick up or down it will start flipping pages with slide in/out effect. All images and texts are just place holders and need to be updated with the actual stuff.
No comments:
Post a Comment