I am working on a click and move RPG game and I was hoping somebody could explain to me how to make this kind of a movement using The Games Factory. I looked around and a couple and they were too confusing. Help would be greatly appreciated.
basically, the easiest way for you to do this, was when you clicked, set the position of an invisible object to X and Y of the mouse, then have the person (with ball movement) look in the direction of the object, then move. Then when he hits the detector, stop moving.
= Position (object): Set X to XMouse and Y to YMouse
= Character: Look in the direction of (0,0) from object. Start Movement.
*Character colides with object
= Character: Stop Movement.
Then just use the stop movement event for when the character colides with an obstacle
That method won't move directly towards the target though KlikMaster, unless it's at some multiple of 45º from the player. For example, If you clicked 100 pixels right of the player but 200 pixels above it, then it would move diagonally for 141 pixels then go 100 pixels vertically upwards. A direction-based system will therefore look better. Best of all would be to have a decimally accurate 360º system, but that's probably not necessary.