# How to make enemy in race game?

**URL:** https://forum.kirupa.com/t/how-to-make-enemy-in-race-game/236976
**Category:** programming
**Created:** [August 25, 2007, 8:26pm UTC](https://forum.kirupa.com/t/how-to-make-enemy-in-race-game/236976 "2007-08-25T20:26:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ImACrow](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@ImACrow](https://forum.kirupa.com/u/ImACrow)
#### Post date: [August 25, 2007, 8:26pm UTC](https://forum.kirupa.com/t/how-to-make-enemy-in-race-game/236976/1 "2007-08-25T20:26:30Z")

</div>

I know for most of you its maybe easy but i never knew how to make enemies in car or race games games - I have only done puzzles and coloring books till now but now I have to make boat race game(like car race but with boats in river) and the game is on a map with river and coast around the river  
Im making a race game with boats and I made somehow the movement of a player’s boat with the arrow keys and the collision with it at the coasts and when it arrive at the start again(after 1 lap) the race to be over and I need a bot(computer boat) and I dont know how to make it move in the same way like the player’s boat on the map and how to make in a way when the computer boat is first to make it game over  
I have done two conditions if boat is a player(boat1) and if boat is computer for the first condition i did it and i need to add another boat (boat2) and i dont know how to make it - is there an easy way to learn it or understand it… ?  
thanks in advance 🙂
