How do I make pseudo-3d racing game

1 favourites
From the Asset Store
A well commented Pseudo 3D Racing game template to learn from or use as a base for your own game!
  • After finishing the racing game Monza in 1950, I would like to make a rally game.

    I wonder if with Construct 2 is possible to create an old-school pseudo-3D racing game; I tried a bit but I need some ideas on how to make the game especially how to create the road, especially curves, placing objects, move the car, etc. <img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question">

    Do any of you have any ideas / suggestions? Tutorial? Code examples to get started?

    Place the link to the game to which I would like to inspire me:

    http://codeincomplete.com/projects/racer/v4.final.html

    this is that I did, (very little .....) <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    http://www.mediafire.com/download/vvmi5 ... acing.capx

    Thanks Angiel

  • The idea is possible, see here:

    It has a link to a generic guide on how such a game works. No c2 example has been made yet, but it looks somewhat doable. Maybe by having a sprite per scanline or some variation of that.

  • Thanks for asking.

    Unfortunately I had already read those posts and did not help me; the only available example is for Construct Classic , that I don't have. I would serve an example for Construct 2.

    I have updated my example and I did the curves but i don't think is the right system. <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    this is that I did

    http://www.mediafire.com/download/tde77 ... acing.capx

    Think you it's okay ? Should I continue with this algorithm ? <img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question">

  • You could do it that way, it could be tedious though.

  • Here's a bit of experimentation with the idea. The main issue it has is the curving of the road isn't synchronized with the speed, so right now it kind of drifts.

    https://dl.dropboxusercontent.com/u/542 ... _race.capx

    It's requires a bit of math and fiddling with the formulas to tune it. That said it's not exactly simple and I haven't really scratched the surface of what that guide covers. At the very least this provides something to play around with.

  • Thank you very much for all the work you've done, I have been very useful. <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    I finally, after so long, I have something to work on. Now I have to ensure that the road is not always remains at the center of the lower edge of the screen, when there are curves, but it moves further to the right most or left according to the curve. <img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked">

    Today I added some graphics (moving clouds, off-track, car, wheel movement) and controlling the car with arrow keys.

    I will attach the file with the changes.

    http://www.mediafire.com/download/d2321 ... ace_1.capx

    Here's the link to try the game (arrow keys to play):

    https://googledrive.com/host/0B8o9MuLqt ... index.html

  • Angiel is right - it's Pole Position, the old arcade game. Have a look at those sorts of games and see how they do "faux" 3D. Cheat It doesn't matter if it's real as long as it looks it

  • I center the track with the baseDx variable, so maybe you could modify it somehow when turning.

  • Excelent Job ! I was tryed for 3 years, but if you don't know a math of pseude 3d, then it's impossible, impossible to make!

  • You could always mess around with the mode 7 plugin.

    Mode 7 was an effect the super nintendo had to render an image kind of like a pseudo 3d ground.

  • Possibly, but even though I made that very effect I find it cumbersome to use.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I am providing a file with a semi-finished racing game. It took me months to build, based on the original code of this post. Anyone interested, check the link below.

    youtu.be/lO2eolZPXG8

  • I am providing a file with a semi-finished racing game. It took me months to build, based on the original code of this post. Anyone interested, check the link below.

    https://youtu.be/lO2eolZPXG8

    Can u please share the code for learning?

  • The effect seems good but the curves are strange. The camera moves in a way that is not usual in this type of games and that I don't like.

  • OK, I will share: mega.nz

    I forgot to delete the paypal link, because I'm not selling the code anymore. Yeah, you can try using Canvas (Construct 3 has this feature) to create pixel lines, instead of using Sprites, it might make the effect better.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)