owi
09-13-2007, 08:01 PM
Hi! What do you guys use for Collision Detection? I have sevral books on Flash game programming, and this topic is really badly covered.
For example in the book "Game Development with Actionscript" you find this:
---
Q. Collision detection is a big part of physics, why didn't you cover it in detail?
A: A. There are plenty of other books that cover this subject in detail. Try Macromedia Flash MX Game Programming, published by Premier Press.
---
if it's covered it barly mention the hitTest function, at the moment I use the collision detection described in emanuelle's tutorial. http://www.emanueleferonato.com/2006/11/18/flash-game-creation-tutorial-part-2/
It's ok, but do you guys have any other tutorials on the subjet? And what do you guys use for collision detection?
If your wondering what I'm making and why I need a more advanced Collision Detection...
I'm making a small one-screen/on screen racing game. Very much like Super Sprint
http://www.thelegacy.de/pics/screen/0/001-SuperSprint-CPC.gif
I have 8 tracks of my own design up and going, but they're all made out of squares, so that the in house collision detection in flash will work. If you look at the pic of the Super sprint track you'll see why a squared collision detection wont work.
I guess I'll have to hard code the collision detection for a track like that?
For example in the book "Game Development with Actionscript" you find this:
---
Q. Collision detection is a big part of physics, why didn't you cover it in detail?
A: A. There are plenty of other books that cover this subject in detail. Try Macromedia Flash MX Game Programming, published by Premier Press.
---
if it's covered it barly mention the hitTest function, at the moment I use the collision detection described in emanuelle's tutorial. http://www.emanueleferonato.com/2006/11/18/flash-game-creation-tutorial-part-2/
It's ok, but do you guys have any other tutorials on the subjet? And what do you guys use for collision detection?
If your wondering what I'm making and why I need a more advanced Collision Detection...
I'm making a small one-screen/on screen racing game. Very much like Super Sprint
http://www.thelegacy.de/pics/screen/0/001-SuperSprint-CPC.gif
I have 8 tracks of my own design up and going, but they're all made out of squares, so that the in house collision detection in flash will work. If you look at the pic of the Super sprint track you'll see why a squared collision detection wont work.
I guess I'll have to hard code the collision detection for a track like that?