how to determine collision direction?

kur1977kur1977 Member Posts: 1
edited November -1 in Working with GS (Mac)
Hi. I wondering to make a game with walking player. The player can walk left or right. When it collide the wall it stops and can't walk in that direction where the wall is located.
I use 'change velocity' to move the player. And where movement key is pressed, I check the collision existence. So, problem: when player is located near the wall - it don't move in the wall direction- it's ok. But player can't move in another direction to. So how can I determine the collision direction ( is the wall located left or right from player)? And is there any way to take or change the atribute of an object from another object behavior?
Sign In or Register to comment.