
01-13-2012, 07:40 AM
|
|
team canada
|
 |
Join Date: Jul 2004
Location: Canada
Posts: 5,200
|
|
|
You have it backwards by the looks of it, switch Controller with Pointer and the modifications you add/subtract.
Here's an example of you can get your direction based on the target (or mouse), and your point of reference (yourself).
I.e: player.dir = getdir(target.x - player.x, target.y - player.y); |
|
|
|