Making a 2D game have perspective

Get help using Construct 2

Post » Wed Sep 18, 2013 8:17 pm

Hello everyone. I'm looking for input.

I want to see if it's possible to create a game similar to this old game for Nokia phones:
http://www.youtube.com/watch?v=hv-u0sXiM10

I want to have clouds, birds and other things in the level though. I've been thinking that I'd make every sprite have a variable that determines its position:

x = horizontal position, relative to the frame
y = vertical position, relative to the frame
z = altitude

I was thinking it might be possible to set all objects' position and size (the further away from the player's view, the smaller the object).

Even with no scrolling involved I would have to take distance into consideration. If an object is far away it won't move so much on the x and y axis, but if it's closer it has to move a lot.

I'm stumped so does anyone have any good tips in that might help?
B
6
S
1
Posts: 41
Reputation: 762

Post » Wed Sep 18, 2013 8:44 pm

this tutorial talks about pseudo 3D. which introduces the z-axis.
It might give you a few ideas.
B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Wed Sep 18, 2013 10:27 pm

I reckon you could do this by adjusting layer scale and parallax over time. Quick test: skydiver.capx
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,680

Post » Thu Sep 19, 2013 8:55 am

cvp - Thanks. I'll be sure to read it :)

ramones - Thanks to you to. Really nice you could just whip that up like that. I'll take a look at the code and see what's what.
B
6
S
1
Posts: 41
Reputation: 762

Post » Thu Sep 19, 2013 10:21 am

@ramones the little demo... it's awesome :D
B
18
S
4
G
1
Posts: 332
Reputation: 3,149


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests