How to make a 3D game in Defold?

Hi…
how can we make/edit 3d world/map?
how to make camera follow the object like in ‘midtown madness’ the camera follows the car?

It’s doable, but Defold is still not really ready to make 3D games like this yet. There are many pain points still which might be fixed in the future.

Check out this example for a simple 3D scene and moving around https://github.com/subsoap/fps

You’ll need to code your own car movement. 3rd person is mostly easy.

Most of the features of “midtown madness” should be doable now.

For the kind of game you want to make, I would use a 2d editor like Tiled to make the world, and then place assets in game like roads, grass, spawn point, and so on based on the 2d map data. You can probably make AI cars which are smart enough to drive on road tiles.

While you’re still learning, try to do one thing at a time, and ask for help if you get stuck on that single thing.

7 Likes

Thanks. this example is helpful.

1 Like