Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

movement help

Hello, I'm new to Gs and may be taking on a project too difficult. It's a tower defense game and I'm trying to move enemies along a path. I have a table with specific x and y coordinates laid out. I'd like the actor (enemy) to move to xy row 1, then row 2, etc. I've tried using code like: after 1 sec, move to tablecellvalue (x)+1. Or: when at position x interpolate to position y, when at y interpolate to z, etc. I can't get any to work for the actor to start at the first row and finish at the last row. Any ideas?


  • bjandthekatzbjandthekatz Orlando, FlPosts: 1,375Member
    You could set up invisible actors at the corners of your path so when your enemies collide with them, they can rotate accordingly
  • that would be one way, however, i would like to save ram wherever i can. can i not just have the actor go to the first row, then have a +1 attribute to go to remaining rows in order?
Sign In or Register to comment.