Skill Tree Activated

The quest to become an indie game developer

#100DaysOfCode#100DaysOfGameDevC#CodingGame DevIllogical BaconPanic RoomScript-writingUnityVisual Studio

Streamlining Code

D039 #PanicRoom

R2D004 #100DaysOfGameDev
R2D009 #100DaysOfCode

While I figured out how to Destroy or Move the walls at the end of my Primary Hallway, I wasn’t too pleased with the overall bulk of the code I used to achieve it. Looking at it a little more closely, I determined I would be better off designating a new Function that could be used repeatedly to accomplish tasks. This led me to set up my MoveWall function which drastically reduced the number of lines of code I originally had in my script to accomplish the same results.

calling the new Function
the new MoveWall function
the open ends of the vertical Primary Hallway after running the new code

Leave a Reply

Your email address will not be published. Required fields are marked *