So I’m making an RPG and I already have most of the code in my head, but what I can’t figure out (in my head) is how to code and object so that when my character runs into it he/she stops moving in the direction of the object.
I’m sure I could make some obscene repetitious code that cancels out the x, y movement of the character but I’m wondering if there isn’t something easier or more effective.
edit: also I’m working in CS4 but I’m doing AS 2.0