Procedially created dynamic terrain for a 2D scroller

Hi,

As a way for me to experiment and learn Unity’s 2D development, I’m porting my old Flash game. I created it with ActionScript 2. It creates the terrain procedurally, before the level starts. It uses Flash’s drawing API and hit test point so the skis sit on top of the terrain.

Here is the Flash game: dayvid.com - games - Ice Hopper

Can someone give me any advice on how to create a procedurally created dynamic terrain in Unity C#?

Thanks!

Hi,

You can dynamically generate both a collider for your level and the mesh.
Use this for colliding: Unity - Scripting API: EdgeCollider2D
And here’s some info on meshes: Unity - Manual: Using meshes with C# scripts

Thank you Tomas. Can you share any tutorials that demonstrate procedural building dynamic collider and mesh?

Thanks!

The 2nd link is a tutorial.

Okay, thanks. I need a little more help, I’ll keep looking for a tutorial that is closer to what I’m trying to do.