Quicker version of makslanes's smooth moving code
Posted: Wed Feb 21, 2007 1:29 am
i made a quicker version of makslane's smooth view moving
1.Create an actor that should appear in the middle of the screen.
2.Make view Parent of Center actor.
3.In the center actor draw actor event:
1.Create an actor that should appear in the middle of the screen.
2.Make view Parent of Center actor.
3.In the center actor draw actor event:
- Code: Select all
angle=direction(x, y, Player.x, Player.y);
directional_velocity=distance(x, y, Player.x, Player.y)/10;//Change the number 10 to set the "weight" factor