Fake 3D GTA engine

Discussion and feedback on Construct 2

Post » Sat Jul 09, 2016 12:43 pm

Okay so, last night I asked myself "What if I created a dynamic 3D Cube on contruct using no 3D plugin/effect/behavior? That might be cool.".
So I spent the next 7 hours (from 11pm to 5am :D) making this. I made it so everyting is modulable via instance and global variables, but most of all having a code that would be as simple as possible.

I ran into a problem quite fast: I can't render 3D looking sprites with no effect on. So I just used the skend effect by somebody (i think. Can't remember his name). Even though I realised a few hours later that I should have used the 3D manipulation effect, but:
1-The effect is buggy, and hard to manipulate
2-It would have broken my first wish to use no 3D effect
3-It was 3am and I really didn't want to remake all of my code for possibly nothing

Anyways, I finally succeeded in making the 3D effect. So the next step was to make everything dependent on instance and global vars, which was pretty easy.

And then, I realised that my effect looked not only awesome when you controled the cube, but also absolutely amazing when you controled the vanishing point.

So I spent the next 2h making a GTA-like kind of looking game, and yesterday, at 5am, I succeded in making this: https://twitter.com/skymen75/status/751591238672023552

Then I got pretty hyped honestly, I tried adding more to this. The engine managed a var named "TopHeight" that defined how "tall" the cube should look. So I added a var named "Bot Height" that defines the "distance between the cube and the floor".
The result is neat HOWEVER I ran into a problem.
When I drew my cubes, I made it so it drew the furthest from the vanishing point first. But, this is no longer valid, as, if I have "Height" there are some cubes that should be drawn after but are drawn before. Which creates some weird perspective glitches.

So I tried my best to make it so it works fine, but I got bored pretty fast. So I'm leaving this here in case anyone is interested in using this. (In case the 2.5D platformer effect or Q3D or 3D whatever effects are too hard to use)

https://mega.nz/#!FgMxjQYB!DNMpGEld-L9y ... sUEDKfi6fE

If anyone fixes the glitches, makes the engine better or even make a game using this, I WANT to see it. Just know that everything works just fine if you just let that "BotHeight" to 0.

EDIT: Here is a live demo so you can see the thing happening
http://airtailstudios.comxa.com/Fake3DGTA/
Basically, the car is controled using arrow keys
In Cubejump, the three cubes are controled using ZQSD, arrow keys, and 8426(numpad)
My addons:
[PLUGIN]Value Monitor
[PLUGIN] Text Alignement
[BEHAVIOR]Timescale Ratio
[BEHAVIOR]Polar Coordinates
[PLUGIN]Action Sequence
[BEHAVIOR]Action Sequence
[BEHAVIOR]Instance Variable Control
B
35
S
6
G
2
Posts: 229
Reputation: 3,390

Post » Sat Jul 09, 2016 9:58 pm

Very impressive!!

Maybe you can recreate GTA 2 with modern controls and better mechanics, good luck, that looks promising!

La communauté est fière de toi ;) (the community is proud of you!)
ImageImage
B
44
S
14
G
10
Posts: 166
Reputation: 7,779

Post » Sat Jul 09, 2016 10:20 pm

Well, I never played any old GTA. The only knowledge I have of them is that perspective look. So I can't really tell what mechanics I can add.
Plus I have a ton of other projects on the run, so I don't think I'll ever touch this again. If I ever do something like this in the future, I most likely may do it using another language/engine.

But if anyone is interested in doing it, feel free to make it yours.

Merci :)
My addons:
[PLUGIN]Value Monitor
[PLUGIN] Text Alignement
[BEHAVIOR]Timescale Ratio
[BEHAVIOR]Polar Coordinates
[PLUGIN]Action Sequence
[BEHAVIOR]Action Sequence
[BEHAVIOR]Instance Variable Control
B
35
S
6
G
2
Posts: 229
Reputation: 3,390

Post » Sat Jul 09, 2016 11:03 pm

You could add some stuff to the game like pedestrians and release it in the store as a template. I'm sure a lot of people would be interested in it.
ImageImage
B
44
S
14
G
10
Posts: 166
Reputation: 7,779

Post » Sat Jul 09, 2016 11:03 pm

... oh yeah, including me!! :D
ImageImage
B
44
S
14
G
10
Posts: 166
Reputation: 7,779

Post » Sun Jul 10, 2016 1:13 am

Very nice!
B
98
S
34
G
20
Posts: 438
Reputation: 17,825

Post » Sun Jul 10, 2016 2:48 am

Very cool.
Someone asked a while back, Can we make GTA 1 game with C2 ?
And this is the answer.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sun Jul 10, 2016 10:43 am

Wow, this is amazing. Great work! Construct 2 and the things people can do with it is really impressive. Wish you were making a game with this.
B
30
S
15
G
22
Posts: 183
Reputation: 14,221

Post » Sun Jul 10, 2016 12:04 pm

Wow, one of the coolest projects I've seen here! It's really impressive and opens the brain to a whole new possibilities of games! Great work!
B
46
S
23
G
31
Posts: 693
Reputation: 20,637

Post » Sun Jul 10, 2016 1:52 pm

First of all, thanks to all of you.

Then, to answer @Zed2100, I may add some things, if some people are interested, however I don't really want to put this on the store, as I want to let anyone access these files for free, and as to put things on the store, I would have to pay 20$ (that I don't have atm). That would not be worth if I keep letting this for free.

I'll let you know if I fix the BotHeight glitch, and if I add a pedestrian AI, and/or a way to go out of the car and stuff. Actually, I'll see if I can play GTA1 and/or 2 and I may add things.

However, I think this can not only be useful for a GTA fangame. I'll make a few layouts and repost this.
My addons:
[PLUGIN]Value Monitor
[PLUGIN] Text Alignement
[BEHAVIOR]Timescale Ratio
[BEHAVIOR]Polar Coordinates
[PLUGIN]Action Sequence
[BEHAVIOR]Action Sequence
[BEHAVIOR]Instance Variable Control
B
35
S
6
G
2
Posts: 229
Reputation: 3,390

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests