Zig-Zag Movement (Yes I did search)

11clock11clock Member Posts: 450
edited November -1 in Working with GS (Mac)
I have this enemy in my game that spawns at a random y position at the right of the screen (position 512), and I want it to move to the left in a zig-zag pattern relative to the enemy. I found this topic:
http://gamesalad.com/forums/topic.php?id=8990
But that is not exactly how I want it to work. I want the enemy to move in a zig-zag pattern RELATIVE to where it randomly spawns, and I don't know how to do this. This would be so much easier if GS had a path function.
Can you help me?

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    well you could use Timers to changeAttribute Motion.Linear Velocity Y (After 0.5) or

    interpolate self.Position.Y

    that is if your enemy is moving via Linear Velocity...

    or way points... (just type in WayPoints in the search field in New on the GS start screen)

    open a new Project and play with an Actor ... try the many different ways to get things moving.

    MH
Sign In or Register to comment.