View Full Version : Hit Test Problem
Crippy
June 1st, 2004, 10:47 AM
ok, i'm making a racing game. I have the walls with there code in but where do i put the cars? do i put them on a seperste layer, inside my wall MC or what?
and another question. what script do you add so that when your car hits the wall the wall makes it bounce back? Thx.
signifer123
June 1st, 2004, 06:22 PM
you put the opposite x or y of your movment code
to bounce put more than the amount
ya get it or no?
so if your moving upward at y +=5
to stop you put y -=5
t obounce ya put for the second part y -=7
Skinny_T
June 1st, 2004, 10:50 PM
say you move your car by a variable called speed. have a biut of code that says speed *= .96. or something like that.
jbrereton3
June 2nd, 2004, 08:44 AM
can someone please post the original codes in the walls??? in this forum...
Thanks
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.