?? Make Actor follow Drawn Line in Real Time ??

iScetiScet Member Posts: 30
edited October 2012 in Working with GS (Mac)


Ok... so in this video you can draw a line and it'll update the table with the values and make the actor like teleport to the starting point and follow the line...
I wanna make it where you touch the main actor and then from there go in the line that is drawn... but i want it to update in real time like a half a second behind it. at a constant speed... not like teleport... so maybe like interpolating to the next value and stuff? not exactly sure... also any way to include physics in this? like go slower when going up but faster going down and stuff?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    ORBZ' waypoint demo might help:

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • iScetiScet Member Posts: 30
    So... Are you saying make waypoints spawn like every .5 seconds of the line and interpolate the position to it? Haven't tried it cause not home but I'll look into it I reckon... We shall see...
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I wasn't necessarily suggesting a specific way of solving your issue, but you could try that. I noticed in that demo that if you move a waypoint while the chasing actor is heading towards it, it redirects its movement to the new location of the waypoint. Figured that might be useful.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.