How do I make first person engine like duke nukem?

Get help using Construct 2

Post » Fri Jun 06, 2014 2:05 am

I'm sorry for making a stupid thread, it looks very interesing, take a look http://www.playfuljs.com/a-first-person ... 265-lines/

I was wondering if is possible with Construct 2, even it doesn't have lag or performance problem.

Is possible to recreate from this source code to C2?
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Fri Jun 06, 2014 3:35 am

Hey dude,

So you are probably already aware that the old Duke3D/Hexen/Doom games were called 2.5D or Psuedo-3D engines

Heres some Theory on the idea https://www.scirra.com/tutorials/534/pseudo-3d-games

Its not ideal, theres no mouse rotation, but its a start
B
6
S
3
Posts: 39
Reputation: 632

Post » Fri Jun 06, 2014 3:54 am

@serpent I had a problem with this sample, when I opened and it started to lag due to engine is 60-150% with debug console.

I'm looking an answer about doable solution with this source code to C2 if is possible.
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Fri Jun 06, 2014 12:19 pm

To do pseudo 3d there are multiple ways, with C2, if you only need 2 dimensions represented as 3 (like a floor always at the same altitude), a possible bet would be to create the logic in 2d on an invisible layer, then to apply formulas to redraw it in pseudo 3d ln top of that with the player as a reference ( which an help also when doing the logic and collision parts of the engine). Even if the deepth /altitude is used, you can still use this method, you will just have to control the height logic yourself.

There are also two things to think about:

You can postion objects sort of easily, but to scale them wit the distance, you will have to choose a certain parameter that will change how objects scales with the distance

The other limiting factor is: C2 can render in rectangles, not trapezoids, I mean by that than a wall on the side can look weird if not done with that in mind.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123


Return to How do I....?

Who is online

Users browsing this forum: Euduardo, Kin, mikehive, ratboy3, tinhofiel and 48 guests