Power Up Item Descriptions

 Author: Jymeer Wilkins

Problem:

So, the problem that I ran into was with the descriptions of the power up items. I wanted to make it to where when you pick up an item, a little menu would pop up with the description of the item and an image. I already pass in images and text for the item display menu, so that wasn't the part I struggled with. Whenever I picked up items, the menu would pop up with the description and the picture. There was an animation I made to make the menu fade away after a few seconds, but if I picked up too many items at one time, they would all overlap. 


                                            The heart description is overlapping causing menu 
                                            to get darker each time I pick up the item.



Solution:

I had ideas on how to fix these problems, but I had to figure out which options I wanted to go with. When it comes to the items of the game, I've used Risk of Rain 2 as a reference. Whenever multiple different items are picked up, it'll display the description of the first item. Then when that menu leaves, it'll display the next item that was picked up. So, I decided that I would do that for the items. I haven't been able to fully implement it just yet though. For a temporary fix, I just made it so when another item is picked up, it gets rid of the previous menu. But this is how I think I'll implement the permanent fix. I'm already storing the items I picked up in an array so they can be displayed in the item menu. I think that making a second array to store these items would work. In this array instead of having multiple of the same item, it would just be one. This way it wouldn't display the same item multiple times. Then I would display the menu and do the little animation. Once the animation ends, I'll move on to the next item and do the same thing. It'll do this until all the items picked up in that current time have been displayed.

Temporary solution to the problem

Comments

Popular posts from this blog

Procedural Generation - Room NavMesh Spawning

Powerups and Wall clipping