View Full Version : Collision Detection
WizzoMaFizzo
August 31st, 2003, 05:27 AM
Hey
can anyone tell me how i can make a collision between a bullet, a club and a helmet.
i have the shooting in the bag but i need to know how i can do this.
when the bullet is shot if it hits the club i want the bullet to be destroyed.
if the bullet hits the helmet i need the game to go to the next scene.
thnx
jingman
August 31st, 2003, 11:34 AM
There are TONS of these tutorials out there, and they can be found with very little searching (especially the keywords 'collision detection').
The easiest way with a bullet -> object collision is prolly to use coordinate based hitTest (where you give flash the coordinates of a point and have it check the existence of other movie clips at that point).
Yeldarb
August 31st, 2003, 04:32 PM
or with hitTest
or you could do it mathematically... which is a bit harder and uses trigonometry, i've been trying to learn this, but it's hard because i'm only a sophomore in high school, and haven't gotten that far in my math classes... a book that would explain how to do this is
"flash mx game design demystified"
jingman
August 31st, 2003, 11:29 PM
Originally posted by Yeldarb
or with hitTest...
Originally posted by jingman
use coordinate based hitTest
:thumb:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.