Fixing Portal System
Xodius Studios Blog #4
Fixing Portal System
The Problem:
The
main problem this week for me was getting the portal system integrated for easy use by game designers. The Portals would stay active when placed and were required to always be a pink color. This would pose an issue for the player and designer as they can't differentiate which portal they will teleported to, if there are more than 2 portals. The game would quickly become very hard to navigate in bigger levels.
Problem Solution:
Adding some creative coding and making the variables public, I was able to make some quick change variables, such as active/activeColor/IdleColor/RespawnTimer/TargetPortal. With these Variables exposed to the designer they can choose with the simple click of a button what color the portal is when it is off and on, how long until the portal is able to be active again, and just a simple click to determine where the portal will teleport. This makes it much easier for the designer and player to navigate the level, and makes the game more enjoyable.
Comments
Post a Comment