So I’m about to very slowly put together my first racing game and would like to know opinions on scrolling the background to keep the camera player focused. Are you guys moving the background around the player or what? Also I haven’t checked out the lab that has come online so is that something worth checking out? I did play it and see that it has some basic side scrolling but the background seems to repeat whereas my track would be interactive (hitting the sides and such) Thanks for any ideas. Currently I would make the background move around the player (a la Futurama) but if there’s a better way please tell :)
|
|
|
|
|
ya its definately worth checking out, it teaches all about scrolling backgrounds ( if your using as3 instead of as2 theres a link for an as3 example at the bottom) |
|
|
Hi KMAE, Thats awesome! Well it turns out, I’m starting a series of articles on making a multiplayer car game. Please check out my blog at http://actionscriptdeveloper.blogspot.com/. This particular topic will be covered in my blog one day, but for now, I will answer your question here: public function doStuff() :void var width :Number = reference.scrollRect.width; var rect :Rectangle = reference.scrollRect.clone(); |
|
|
Thanks so much, Since I am taking my sweet time with this one I may not get to look at it for a bit. It looks confusing at first but I’m sure I can make it out. My experience comes from programming simple java programs in school. The 4 games I’ve made before are my first :) and I haven’t as I said before done any scrolling yet. I am using AS2 right now just because I was using the Flash game programming for dummies book that is fairly old. I’ll certainly have to check out your blog too. Also thanks billo! |
Loading