Skip to main content

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

Problem for the week By Jacob

  Hello All, Jacob here with another update. Things that went wrong this week. Well, the Fusebox script I was making was a problem. The Problem was that I was trying to do everything within the fusebox. My approach was to make an array of game objects that would be populated with the objects that would be turned off and disable their scripts so that the player can't go to the buttons and turn them on unless they go to the fusebox. So I had it going through and turning off the scripts of the game objects, based on an interface but I couldn't get it working that well unless I used to update, which is dumb and inefficient I know but it worked.


   The solution was reached with the help of TJ. he thought up the idea of having the restaurant manager script handle some of the heavy lifting and helped me get it to work.  Like the Restaurant manager that knows about the lights so I can make a function in that that uses the lights to be on and off and just call them in the fusebox script. With the help of TJ, I was able to use the Interface better and get it to work when the player interacted with the fusebox through the restaurant manager turning off lights, TVs, and the grill. Now with the function fusebox, the ghost can disrupt the player more when they are being successful and filling orders fast and efficiently.



 
here above is a picture of it working.

here it is turned off, the lights, TVs, and grill are turned off.

Support this post

Did you like this post? Tell us

Leave a comment

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