Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-06-2012, 04:27 AM   #1
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, 10:03 AM   #2
Senior Member
dialectric's Avatar
Join Date: May 2006
Location: USA
Posts: 628


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:


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, 04:16 PM   #3
Let's Go Blues!
Rhuno's Avatar
Join Date: Nov 2007
Location: Orlando, FL
Posts: 255
Send a message via AIM to Rhuno

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, 251 views)
Check out my flashblog, yo.
Rhuno is offline   Reply With Quote

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 04:04 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2015, 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.