Detect which side of collision.

Fabian_Russ

Newcomer
Joined
Sep 29, 2008
Messages
23
Hey, I was trying to make a game like Pokemon.
This game has nice animations and when running. I need to hit a collision and stop, and face the direction that I was previously running, and THEN have the ability to hit a diffrent arrow key and go a diffrent direction. I fail to figure this out. I get hung..

This : If Ctl.Bounds.IntersectsWith(Player.Bounds) doesn't do what I want it to do.. When I collide I get stuck.. Any help would be very appreciated!
 
once that condition is true; you have an intersection; so you need to then move the objects next to each other and stop the movement.

You'll need to detect the collision, then move the objects next to each other.
 
Back
Top