Procedural

Get help using Construct 2

Post » Tue Mar 05, 2013 2:52 am

hello there,

could somebody tell me how can I do a procedural game like SKI SAFARI ( https://www.youtube.com/watch?v=i6mz4Nt6BPk )https://www.youtube.com/watch?v=i6mz4Nt6BPk is there any template or something else?

thanks for your help

PROS
B
3
Posts: 9
Reputation: 343

Post » Tue Mar 05, 2013 3:32 am

Procedurally generated, so the level basically goes on forever with randomized terrain? I'd love to know that as well.
B
6
S
1
Posts: 67
Reputation: 986

Post » Tue Mar 05, 2013 3:37 am

There is a endless runner template. With some of the plugins like rojohouonds canvas and stuff. You could probably get a smooth ski like terrain.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Tue Mar 05, 2013 6:24 am

There are many ways to do procedural generation, and the method depends on the effect you are trying to accomplish.

From Wikipedia: http://en.wikipedia.org/wiki/Fractal_landscape
[quote]Generation of fractal landscapes

A way to make such a landscape is to employ the random midpoint displacement algorithm, in which a square is subdivided into four smaller equal squares and the center point is vertically offset by some random amount. The process is repeated on the four new squares, and so on, until the desired level of detail is reached. There are many fractal procedures (such as Perlin noise) capable of creating terrain data, however, the term "fractal landscape" has become more generic.[/quote]

Procedural generation is basically random generation, with a consistent set of limitations on each generated chunk. Write a function to create the effect you are looking for, and call it every time you need a new chunk.
Mistakes were made.
B
37
S
17
G
67
Posts: 1,041
Reputation: 38,211

Post » Tue Mar 05, 2013 6:34 am

Wouldn't a massive number of tiny individual sprites create a huge performance hit?
B
6
S
1
Posts: 67
Reputation: 986

Post » Tue Mar 05, 2013 6:42 am

Probably. As jayderu said, you can use a plugin like Canvas to draw your curves in chunks.
Mistakes were made.
B
37
S
17
G
67
Posts: 1,041
Reputation: 38,211

Post » Tue Mar 05, 2013 12:24 pm

and is there any example?
B
3
Posts: 9
Reputation: 343


Return to How do I....?

Who is online

Users browsing this forum: linkman2004, supreme676 and 19 guests