Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-06-2012, 03:27 AM   #1
kingargon
Registered User
 
Join Date: Mar 2012
Posts: 1
Default [AS3] create side scroller with hills

Im new to the game development with as3. i want to make side scroller race game with hills and terrain. im curious where i can learn how to make the car drive over the terrain rather than through it. help please!
kingargon is offline   Reply With Quote
Old 03-08-2012, 09:03 AM   #2
dialectric
Senior Member
 
dialectric's Avatar
 
Join Date: May 2006
Location: USA
Posts: 614
Default

Hi,

One way to do a side-scroll terrain game would be with a physics engine. Box2d is a widely used one ported to AS3, and there are examples of similar projects:

http://www.emanueleferonato.com/2011...ding-textures/

Box2d isn't all that easy to work with, though. Another approach would be to have just 45 degree angles and flats for terrain - simple enough to calculate car speed without the physics engine.

- dialectric
dialectric is offline   Reply With Quote
Old 03-10-2012, 03:16 PM   #3
Rhuno
Let's Go Blues!
 
Rhuno's Avatar
 
Join Date: Nov 2007
Location: Orlando, FL
Posts: 252
Send a message via AIM to Rhuno
Default

I've attached a simple example of a character moving over uneven terrain. It may not be exactly what you're looking for, but may give you a place to start.
Attached Files
File Type: zip terrainTestCS4.zip (8.4 KB, 239 views)
__________________
Check out my flashblog, yo.
Rhuno is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:54 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.