kes wrote:this is my first message in a long time, im just having trouble with making an actor (view) follow another actor on the specified axis (x, y, you know) when at first i did it the view followed the actor but when the enemies where out of vision, i return to that place and the enemy disapeared. so i need another code.
excuse my english im Argentinian
first, make an actor that is in the center of the view,
make center view actor the parent to the view,
draw actor event for center view
- Code: Select all
angle = direction(x, y, player.x, player.y);
directional_velocity = distance(x, y, player.x, player.y) / 25;
(Game A Gogo I am not copying your code, I am using my version of it)
if the x and y do not work,
try using xscreen and yscreen instead
