Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: collision detection |
From: | Glen Rhodes |
Date: | Wed, 5 Apr 2000 20:34:06 +0100 |
Try checking the bounding box of the car MC (between the car's X and Y
position and the X + width and Y + height). If it falls inside this box,
then the car has collided.
Glen
------------------
Glen Rhodes
dot com Entertainment Group Inc.
Tel: (905) 337-8524
Fax: (905) 337-8630
www.dceg.com
-----Original Message-----
From: ownerchinwag [dot] com [ownerchinwag [dot] com]On">mailto:ownerchinwag [dot] com]On Behalf Of dave
evans
Sent: Wednesday, April 05, 2000 12:47 PM
To: flasherchinwag [dot] com
Subject: FLASH: collision detection
I'm trying to develop a simple car racing game. I have the 'car' mc moving
at the bottom of the screen as a mouse tracker confined to a rectangle one
pixel high but the width of the screen. I need to find a way of telling the
car mc to go to the crash sequence of the timeline when it collides with
oncoming mc's (trees etc).
I've tried a loop detecting if the pointer is near the oncoming mc's, but it
doesn't work because the car mc is confined to the bottom of the screen but
the pointer can be anywhere....
Any help would be a life saver...or a point in the direction of a
tutorial....I've tried mooks and the flash academy tutorials, to no avail.
Thanks,
dave
davepetspark [dot] com
mrhumantorchhotmail [dot] com
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
the new Flasher list books section, check it out
at http://www.chinwag.com/flasher/books.shtml
send suggestions for inclusions to helpchinwag [dot] com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
the new Flasher list books section, check it out
at http://www.chinwag.com/flasher/books.shtml
send suggestions for inclusions to helpchinwag [dot] com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: collision detection, dave evans
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]