Infinite Layout

Get help using Construct 2

Post » Sun Nov 17, 2013 7:23 pm

I'm making a game where the player needs an infinite space. A randomly generating world that goes as far as the player desires. I want to know 2 things:
1. Is it possible?
2. How do I do it?

-Thanks
B
2
Posts: 1
Reputation: 152

Post » Sun Nov 17, 2013 7:31 pm

1. This strangly get's asked often. Is it possible?
In regards to game play the answer is ALWAYS YES. It's number 2 you need to focus on.

2. You need more details. Do you need save this world? can players go back?

Either way just design the world by a 3x3 grid of large space. When player moves from 1 grid area to another create new world on the edge of new space.

There are 2 approaches you can do.
1. Move the player and recenter when changing grid areas.
2. the world moves around the player.

however I don't believe anyone really has done this in C2 so i don't think there will be any examples. But I could be wrong.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Mon Nov 18, 2013 3:54 am

You can fake a infinite scrolling space background using this plugin

http://www.scirra.com/forum/plugin-sprite-sheet_topic78654.html

simply connect the keypresses of flying your ship to the offset x and y of the special tiled background in this plugin.

Here's an example file

https://dl.dropboxusercontent.com/u/403350/infinitespace-example.capx

justifun2013-11-18 04:03:47
B
83
S
40
G
15
Posts: 993
Reputation: 16,909


Return to How do I....?

Who is online

Users browsing this forum: imothep85, KTML5 and 2 guests