object's positions from player's position (solved)

Started by Volcan, Sun 18/11/2012 21:11:55

Previous topic - Next topic

Volcan

I'm working on a game where a witch throws a spell into something.

How to get Object's position from player's position?

AGS help file gives me headache.

Gilbert

Something simple as this?
Code: AGS
rx = object[1].X - player.x;
ry = object[1].Y - player.y;

Volcan


SMF spam blocked by CleanTalk