Is there a simple way to make a sequence of moves using MoveTo and MoveFinish? For example, I have a ship that make a square move. It comes from the left top of the screen, go down, go to the right, and come back to the top. When Y is smaller than -350, the ship is destroyed.
- Code: Select all
if(x==30&&y<80){MoveTo("Event Actor", 30.000000, 80.000000, 8.000000, "Game Center", "");}
else if(x==30&&y>=79){MoveTo("Event Actor", 600.000000, 80.000000, 3.000000, "Game Center", "");}
else if(x==600&&y>=79){MoveTo("Event Actor", 600.000000, -400.000000, 5.000000, "Game Center", "");}
else if(x==600&&y<=-350){DestroyActor("Event Actor");
But it is an amount of code. And I'm avoiding to use paths because I think path moves are, well, not natural. Any good solution? Best.