# Racing Game

**URL:** <https://forum.kirupa.com/t/racing-game/59614>\
**Category:** Uncategorized\
**Created:** [August 2, 2004, 3:09pm UTC](https://forum.kirupa.com/t/racing-game/59614 "2004-08-02T15:09:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akirasan](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Akirasan](https://forum.kirupa.com/u/Akirasan)\
**Post date:** [August 2, 2004, 3:09pm UTC](https://forum.kirupa.com/t/racing-game/59614/1 "2004-08-02T15:09:39Z")

</div>

Hi Everybody,

I’m making a racing game in flash using tiles to generate de map. You can see how it’s going here:

[http://www.mrshp.hpg.ig.com.br/passo6.swf](http://www.mrshp.hpg.ig.com.br/passo6.swf)

The graphic is just a sketch.

My problem is: How can i make curves? I can’t figure out how to make some curves (can be 45° or 90° curves) and how to make the “others” cars (not controlled) follow the curves.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 2, 2004, 3:42pm UTC](https://forum.kirupa.com/t/racing-game/59614/2 "2004-08-02T15:42:02Z")

</div>

idk if it wasn’t tile based it would be easier or you couild just do drag raceing

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 2, 2004, 11:34pm UTC](https://forum.kirupa.com/t/racing-game/59614/3 "2004-08-02T23:34:24Z")

</div>

Well Lets See, 1st Sticky on this forum : Game Resources

• Tile Based Game by Outside of Society  
[http://oos.moxiecode.com/](http://oos.moxiecode.com/)

• Tile Based Games by TONYPA

> **[This is Still Not Better Than Playing Games - To NY pa...](http://tonypa.pri.ee/not-better-playing-games/)**
>
> This page has an interesting story about wondering if playing games back home is more fun and more important than going on family vacations.

After You dig a bit more in Outside of the society 😉  
Link about collision with Different Tiles Shape !

> **[Games - Welcome to Metanet Software Inc](http://www.metanetsoftware.com/)**
>
> We are Metanet Software, a boutique game developer who created the incredibly popular ninja-parkour platforming games N, N+ and N++. Play them now!

Hope You Find some CluEs …

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 3, 2004, 12:02pm UTC](https://forum.kirupa.com/t/racing-game/59614/4 "2004-08-03T12:02:02Z")

</div>

signifer123,

Yes, a drag race could be easier but I have to make it based on tiles.

lastchildz,

Thanks for the links, I will dig them deeply!

The TonyPa tutorial and the Outside Society, I’ve already seen to make the game. On the Outside Society has an example of a racing with curves, but it uses another tile map with angles, but I don’t know… I didn’t like that solution a lot…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 4, 2004, 4:49am UTC](https://forum.kirupa.com/t/racing-game/59614/5 "2004-08-04T04:49:38Z")

</div>

> [@Akirasan](#):
>
> On the Outside Society has an example of a racing with curves, but it uses another tile map with angles, but I don’t know… I didn’t like that solution a lot…

Hi Akirasan ,

Yep , True this exemple is not very convincing 🙂  
For you problem , did you try to make the map coordinate to rotate instead of the car moving ? I don’t know how it work with Tiles but I tried with ArtBased Games and It did work pretty good … Well I do remember seeing some RPG tileGame doing this somewhere so I am sure You could do it .  
And then improve the physics so It will have the feel of car turning .

And for the tile curve problem (I guess you gonna have some of this problems as curves made by square tiles are not that effiecient for a racing game 🙂 ) you should really look in this link from [[font=verdana,geneva,arial,helvetica][size=-2]METANET[/size][/font]](http://www.harveycartel.org/metanet/tutorials/tutorialA.html)

HOpe you get somewhere … !

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 4, 2004, 5:14am UTC](https://forum.kirupa.com/t/racing-game/59614/6 "2004-08-04T05:14:44Z")

</div>

Sorry to post just links and not real help but well: I am not into tilebase for now !

here I found on Tonypa tuts : rotating tile MAP … should do it ?!  
[http://www.tonypa.pri.ee/tbw/tut21.html](http://www.tonypa.pri.ee/tbw/tut21.html)

LAter .

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 4, 2004, 2:01pm UTC](https://forum.kirupa.com/t/racing-game/59614/7 "2004-08-04T14:01:49Z")

</div>

> [@lastchildz](#):
>
> did you try to make the map coordinate to rotate instead of the car moving ? I don’t know how it work with Tiles but I tried with ArtBased Games and It did work pretty good …

Hi Lastchildz,

I guess rotating the map will not solve my problem, my big problem are the traffic cars. If I make some curves on the tiles, I will have to improve the AI of the traffic cars to follow the curves. To the player, doesn’t matter to rotate the car coordinates or the map coordinates ☹

> [@lastchildz](#):
>
> And for the tile curve problem (I guess you gonna have some of this problems as curves made by square tiles are not that effiecient for a racing game 🙂 ) you should really look in this link from [[font=verdana,geneva,arial,helvetica][size=-2]METANET[/size][/font]](http://www.harveycartel.org/metanet/tutorials/tutorialA.html)

Yes, thats something that I have to look. Thanks again

> [@lastchildz](#):
>
> Sorry to post just links and not real help but well: I am not into tilebase for now !

Come on, you are helping me a lot! You may not be into tilebase for now, but your experience are very wellcome! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 4, 2004, 2:15pm UTC](https://forum.kirupa.com/t/racing-game/59614/8 "2004-08-04T14:15:50Z")

</div>

Pathfinding could be the methode to use … for your “Ennemy” Car AI.

I tried to create a path for an object following a direction with HitTest but the result is not too good but I am sure its possible to make it more acurate :

look at this thread : [http://www.kirupaforum.com/forums/showthread.php?t=64318](http://www.kirupaforum.com/forums/showthread.php?t=64318)
