Tick Tock Clock
I’m afraid not much of an exciting update today, I’ve been working on a few things that I’m not quite ready to show off just yet and I needed a break from banging my head against a wall and decided to work on something smaller just to help fill out the overall world. I haven’t put too much stock into sounds or music just yet, which can lead to the world feeling very empty and dead, in a bad way!
I decided to cheer myself up by adding a simple bit of logic that I can use to run some custom events. This logic is easy to re-use for any type of activity, so even if it doesn’t end up being used for the music system later in the project, it still has merit from a designer point of view.
The Logic Timer can exist in the world, be controlled by events and changed as and when needed. It allows me to do certain things when this timer is up
It may seem small, and you could easily just do this with a few nodes in the editor without going to all this trouble of setting up a new class / functions /delegates for this, however if you are going to do this more than once, make it an actor that you can re-use. Don’t clutter your Level Blueprint with logic if you are going to need to use it elsewhere.
As a programmer, you never want to repeat yourself or have multiple copies of chunks of logic scattered throughout your project. It’s messy and can be complicated to track down issues and make changes. Having a programmer (me) develop all of this code in C++ and just exposing this to your level designer (me) is great. Thanks me!
I’ll catch ya on the flipside.