How to Follow A Drawn Line Thank You Everyone For The Help!
Time
Member Posts: 113
Hey GameSalad Community,
I have a problem with my GameSalad project, I can draw a line but I need an object to follow the line when the line is colliding with it. I already have the rule when it's colliding but I don't understand on how to follow the exact path of the line. I used the inklimitdemo but I cannot make him follow the ink path. I used TShirtBooths follow the finger demo but I cannot get it. Please, if anyone has the solution, comment here! Thank you for all the help! Sorry I'm new to GameSalad.
I have a problem with my GameSalad project, I can draw a line but I need an object to follow the line when the line is colliding with it. I already have the rule when it's colliding but I don't understand on how to follow the exact path of the line. I used the inklimitdemo but I cannot make him follow the ink path. I used TShirtBooths follow the finger demo but I cannot get it. Please, if anyone has the solution, comment here! Thank you for all the help! Sorry I'm new to GameSalad.
Comments
http://forums.gamesalad.com/discussion/54689/forum-faqs#latest
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Make a game-level attribute called "lineRotation"
In the Line actor:
When overlaps or collides with actor of type Actor1
-- Change Attribute: game.lineRotation To: self.Rotation
In Actor1:
When overlaps or collides with actor of type Line
-- Change Attribute: self.rotation To: game.lineRotation
-- Change Velocity -- Direction: game.lineRotation