Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello devs! I'm thinking here, is it possible to create a racing game in Coppercube in 2D, but simulating 3D? For example Top gear from Snes or Outrun from Megadrive. In this same style, I imagine an infinite racing game like Atari's enduro, in which the track is infinite, has random curves and rival cars appear on the scene also randomly. I'm trying to create something similar without using codes, is it possible? Do you have any advice or tips? Thank you very much! |
||||
|
To a road sweep left/right, use billboards to make horizontal strips of your scene and move them (left and right) in parallax to each other - billboards at the middle (horizon) of the screen should move more - billboards at the bottom shouldn't move left and right. A simple way to do this is to move the camera left/right with the player's car - place the billboard strips in layers so the lowst strips are closer to the camera than the higher strips. For making the road roll forward, use separate billboards for road-lines, road-signs, grass/rocks/mountains/trees etc and move them towards the camera when the car accelerates. For car steering/crashing, finally have a separate billboard for the car with on proximity events for centre/left/right of the screen, swap the sprite of the car to make it look like it's turning, depending where it is in relation to the screen. You can use on proximity events on the mountains/signs/rocks to make the car crash, by triggering different sounds and changing the texture of the car's billboard to an 2D sprite animation when it comes into proximity with the other billboards. For different levels, simply swap out the billboard images with different scene/hazards/car. If you want, I can make this as a ccb template for you, would probably take me a week to finish it for you. |
||||
|
Some more info I just found.... http://www.extentofthejam.com/ps... |
||||
|
In fact, thinking about it, it may be even simpler to do. You could probably just use Every few seconds: "Shoot": to fire a section of the road forward quickly to make a blitter snake effect as the road segments are projected in front of the car sprite. This would give the road left/right/up/down curves. There may be an issue with speed in up/slowing down the road though. Not sure, I'd have to check |
||||
|
Hi VP. thanks for all your support, you are very kind and helpful! Your idea is very good, I'm seeing is really possible to do a game like this. it's amazing, everything is possible to do on coppercube without using codes! Thanks for the tips and the link, I'm studing this possibility, I love these racing 2D games, I would like to create one like this I thought of creating something using bilboards, you organized the ideas better, I'll try to do something. Use the "shoot action" to fire sections of the road is other excellent idea! |
||||
|
find my old example from time when i try html, create this algorithm for fun so i'm not sure about how it can be implemented in game (cuz i create it as page background), anyway i hope math inside can help you
people who know math, don't judge me, i made it when i was young and dumb |
||||
|
|
||||
|
Hi SamGrady, thanks for share this html code, this is what I'm thinking! I don't know very well use codes in Coppercube, but I will study the math behind this code, is perfect, with this is possible to create a endless race game! |
|