Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

UI + Level Design

The player is now paused properly

Hello All, Jacob here. This week's issues were more about being efficient and bug-fixing the shop menu and Rat race menu so that you could access them when playing. The problem with the ShopMenu was that it couldn't be appropriately paused because I was trying to use an interface to be more efficient in our programming. Every time I would press e on the clerk to activate the menu it wouldn't work so I did the quick and dirty way of using Update and on Collision to detect the player for the time being but I kept testing ways with debug to see what I was missing. I knew Interfaces are run once each time the event is called on so I added logic to turn off the player controller and paused the game that way the player would be able to work. But there was a problem the Menu wouldn't show up..... I decide to throw a collider on the clerk to see if that was the issue because I checked the player script and notice that it indeed was looking for a collider to interact with the player.  Then bam I was able to get it working. Due to some missing logic in the rat race, I turned it off and made it so that for now pressing E on the race will start it and the Player can watch the rat race but later gambling will be added.  Figuring this out made it easy to interact with the NPCs on in the game too. So the NPCs work when you press E on them, they will say funny lines or give you a tip about playing.



Rat Race working
Here above the rat race is working and homeless people will be betting on them

here above the previous Rat winner is shown

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.