iTween non interpolate PutOnPath method Waypoints
first and foremost, sorry for the crude ilustration lol
LEGEND : RED = Player GREEN = Waypoint YELLOW = Debug Line
So, i want to make a controlable object AKA player, i made 4 points that i want to make it as square (pure SQUARE, no rounded edges) , and i want to control the player to follow the waypoint when input A or D, and instantly stop moving when i unpress them
the problem is, when i us the iTween engine, first the only solution i can find to achieve this is use PutnOnPath function or PointOnPath which can't be use with hashable, thus can't specify the follow behaviour, and also because of this i can't move the player with constant speed, because i can't set the EASE type on hash
anyone can give me solution regarding this?, thank you in advaance