For the GMTK Game Jam

Spare No Fear

Made with Unreal Engine 5

What I done

This was for the Game Maker Toolkit Game Jam, the theme was roles reversed. This was tough to think about for unique scenarios and games that can be implemented. As I was playing Wii Sports the bowling section, the idea of the being the bowling pin instead of the bowler sprung into mind and got to it for the 48 hour jam.

Player Code


This is for the movement for the character. We use the Enchanced Input System in Unreal Engine to get the player inputs with Input Actions whilst limiting to movement to left and right. Then launch the player character a small amount to give the hopping effect of the pin, after that play a thump sound.

When the player hits the dash key it first check if the cooldown is above 0.9 and if so it will then proceed the sequence of events. It will first reset the dash timer, it will then get the player rotation. If it is above 0 being left then it will dash to the left, if it is below being right it will dash to the right.

When the game starts and the first sequence it will cast to the player controller the Enhanced Input System and maps it to the controller. It will then create the widget and add it to the viewport.


During each tick it checks the dash timer above 0.9 if it is true then it will do nothing but if it is false then it would every 0.2 seconds add 0.1 to the timer until it reaches 1. This is for the dash ability in the game


Level Code

This section controlled the spawning of the bowling balls. We first created an array for all the target point where the ball spawns, and we select a random integar from that array to get the target point we want. In the sequence we delay the spawning by default of 1 second and the spawn the bowling ball. In the second part of the sequence we check if the interval has reached below 0.25 as that is too far, if it hasnt then we lower the interval speed


We have a trigger box in the level behind the player, so when the bowling ball collides with the box collision it will destroy the ball, if it is not the bowling ball that passed the box but instead the player. It will then add the restart widget to viewport and set the game settings to input mode only so they can only use the menu to interact.

Enemy Code

Bowling ball blueprint is pretty simple, when it spawns it will launch itself and start rolling. Then if the actor intersects with the player it will launch it backwards.

Previous
Previous

Katana

Next
Next

Forgotten Pills (WIP)