The Interaction System: The Heart of the Game
My most significant piece of work across the entire game must have been the interaction system – It’s a single script that runs all of the interactable npc’s and the obstacles in the player’s way.
We needed a way to create a lot of different interactable characters quickly, so I built a modular tool that can run almost any of our characters. The Interaction tool starts pretty simple, when you place it on an object, it just shows a default score value, and a few simple properties, but the important one here is “Is Obstacle” – this one designates the interaction as something the player just runs into and takes damage, with a few options below for reactions to the player hitting them.
If IsObstacle is turned off, however, the tool suddenly expands to show several more options. Turning this switch off designates the object as interactable, and now allows you to choose which power is the correct one to hit the npc with, which is half right, and the wrong one. Below this, I’ve added several other relatively self-explanatory options to help bring the characters to life.
Once we toggle these options on, the tool expands another time to allow you to configure each action very specifically, we can set a direction to move for the first two, specify which reactions cause an animation or play a sound, and set certain objects to toggle on and off
Here are a few examples of real applications of the tool:
Cone:
Baby:
Broken Car:
This tool was made possible using another type of script called an Editor script, which reads the values from the Interaction script and decides what to draw in the editor, to help restrict unnecessary options from our designers. Without this, the tool would always look even bigger than the final two screenshots! That would have cluttered the editor up for more simple objects and made it harder to work with other components on the same object.
Please give the game a try, the android install file is available on our page, check back later to get it directly on google play!
Files
Get SuperKlutz!
SuperKlutz!
Superklutz: The Awfully Good Villain!
Status | Prototype |
Author | Ale157 |
Genre | Adventure, Action, Platformer |
Tags | 3D, Endless Runner, infinite-runner, Runner, Singleplayer, Unity |
More posts
- Cutscene ArtJul 16, 2024
- Elemental Particle EffectsJul 09, 2024
- 2D comic effects in 3D!Jul 08, 2024
- Environment Prop DetailsJul 01, 2024
- Characters designs update and UI Bar.Jul 01, 2024
- Level Design Update and AudioJun 24, 2024
- Toon Shader and OutlinesJun 12, 2024
- Characters designs and models.Jun 11, 2024
- Level Design and EnvironmentsJun 11, 2024