View Full Version : bouncing off walls
ttttt
06-12-2007, 08:46 PM
hi, im making a game in flash mx 2004 and ive made the player, gravity and floor, as well as the moving of the player. however, i just cant get on with walls and how to make the player bounce off them etc.
i would appreciate any help,
thanks.
Simply multiply it's X or Y movement by -1, so it reverses whatever speed it has. :)
ttttt
06-17-2007, 11:30 AM
thanks, but the problem is also with the hit.test thing, because at the moment it's not colliding with an object, but checking if the x is less than a certain number, which is the x position of the wall.
i hope that makes sense...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.