Endless Runner Prototype
- Eryel E. Rodriguez

- Jun 23, 2022
- 2 min read
Updated: Aug 8, 2022
AI , Controls, Pick Ups, Lighting and Advanced Obstacles.
This is the prototype for a later team effort to create a game.

AI Programming
In this project, I programmed an AI to chase the player and destroy him. As an endless runner, if the player where to hit several obstacles repeatedly, it would lead for him to lose. In order for that to happen, an AI that is chasing the character as he is playing, following the same track and also avoiding the same obstacles.

The AI can hear and see the player, but for this example the sound is removed and only the sight was used as he cant lose sight of the player at all times to maintain the chase for as long as the player can avoid the player.
Pick Ups
In Endless Runner Games, one is able to grab "Pick Ups" that give you an ability to help you run faster, avoid a collision or even grab more coins along the way. In this prototype I programmed a Speed Pick Up (Allows the Player to go faster in the game) and a Light Saber Pick up (Allows the Player to destroy obstacles along the way). Very simple pick ups but essentials for an endless runner, as for one that can destroy pick ups, a similar one can be made to ignore a collision for the player but for this I decided to destroy the object in the way.

(This is the Light Saber Pick up that Destroys objects in the Game)

(This is the Speed Pick up that allows the player to run faster within the track)
Other Parts that were programmed...
In addition to the previous things, from the UE4 pre done controls, they were tweaked to only allow the player to look forward and move from side to side with out allowing him to stop running, move back or to control his speed.
Lights on the AI where programmed to flash on and off when he gets closer and closer to the Player to give a warning and his movement tweaked to not get lost in the dust after the player grabs a speed pick up.
Special Obstacles where made to allow the player to get unstuck after a delay to deactivate the collision of the obstacle, to be destroyed by the AI in the chase of the Player.
Credits
This Prototype was not done by just me but 3D object were done by Alejandro Torres (Hallways), Ramon Rodriguez (Obstacles) and I had help to tweak and work side by side in the programming with Orlando Sierra, we worked on separate prototypes of the same game but both our mechanics will be combined for the creation of the game. Other people like Christian Sierra and Jhuan Soto joined latter on the team but their work was added on the game project itself.
Here's a quick clip of the AI chase working, pick ups, coins and obstacles.


Comments