how to make a dirt bike path

I need to make a path for a dirt bike to follow like in hill climb racing or like in extreme bike trip. 

can some one give me the basic code for this type of thing? 

any help appreciated!

thanks!

Below is a quick link to a demo from the code base on creating a physics-based racer:

http://developer.coronalabs.com/code/billy-cart-corona

I haven’t tried it in G2 so YMMV. I don’t think you’re going to find any “basic” code for this kind of game, as it’s going to be very specific to your project. I don’t know of any templates that exist, but the above is as good a start as any.

I just need something that is 2d like a swerving line. like this I just need a path.

I don’t know if there is any template code for what you’re describing. You are most likely going to need to develop something yourself from scratch.

take a look at this example - it’s based on tiny wings, but could be adapted to do what you are trying to do.

https://github.com/ansca/TinyPenguin

Below is a quick link to a demo from the code base on creating a physics-based racer:

http://developer.coronalabs.com/code/billy-cart-corona

I haven’t tried it in G2 so YMMV. I don’t think you’re going to find any “basic” code for this kind of game, as it’s going to be very specific to your project. I don’t know of any templates that exist, but the above is as good a start as any.

I just need something that is 2d like a swerving line. like this I just need a path.

I don’t know if there is any template code for what you’re describing. You are most likely going to need to develop something yourself from scratch.

take a look at this example - it’s based on tiny wings, but could be adapted to do what you are trying to do.

https://github.com/ansca/TinyPenguin