-
Hi im working on my firs game now, i've been working with flash for about 5 months and its great. Which book is the best? I have the flash bible but i understand all that i need more actionscripting... Ok to my problem:
I have made a car that goes left and right, and on the road are rocks.I want to know how to do that the car stops when it hits the rock?
Thanks!!
-
You need collision detection actionscript.
The you will need to write some code that tells the car to stop if there is a collision.
-
i would recommend flash 4 magic found out more about it at www.actionscript.com as far as hitting the rocks is concerned you will need a simple script inside a movie clip that constantly loops to check if the car collides with the rock if it does then it will activate another line of code that tells it to stop moving!! for the script e-mail me guywatson@btinternet.com or icq me 71063418 and tell me the instance names of the car and the rocks and i will sort it for you!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|