Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: morganw on Thu 18/10/2018 00:27:14

Title: Lock pathfinder to diagonal movement?
Post by: morganw on Thu 18/10/2018 00:27:14
If setting Character.DiagonalLoops to true enables the use of the diagonal frames, is there any way to lock the pathfinder to only use diagonal movements, and so only use those frames?
Title: Re: Lock pathfinder to diagonal movement?
Post by: Crimson Wizard on Thu 18/10/2018 01:44:07
Built-in pathfinder does not have any settings. Perhaps only making walkable areas consist of diagonals... not sure that will reliably help with automatic loop selection though.
Or scripting your own pathfinder/movement mechanic.
Title: Re: Lock pathfinder to diagonal movement?
Post by: eri0o on Thu 18/10/2018 02:57:30
Although a different topic, maybe some ideas here are relevant: http://www.adventuregamestudio.co.uk/forums/index.php?topic=55371.0 (http://www.adventuregamestudio.co.uk/forums/index.php?topic=55371.0)
Title: Re: Lock pathfinder to diagonal movement?
Post by: Khris on Thu 18/10/2018 10:49:13
I posted this exactly a year ago: http://www.adventuregamestudio.co.uk/forums/index.php?topic=55357.msg636572995#msg636572995
It is for keyboard controls though.
Title: Re: Lock pathfinder to diagonal movement?
Post by: morganw on Thu 18/10/2018 13:18:16
Quote from: eri0o on Thu 18/10/2018 02:57:30
Although a different topic, maybe some ideas here are relevant: http://www.adventuregamestudio.co.uk/forums/index.php?topic=55371.0 (http://www.adventuregamestudio.co.uk/forums/index.php?topic=55371.0)
Thanks. Alan's patch looks quite useful (should probably be in by default useful, although perhaps per room?).

Quote from: Khris on Thu 18/10/2018 10:49:13
I posted this exactly a year ago: http://www.adventuregamestudio.co.uk/forums/index.php?topic=55357.msg636572995#msg636572995
It is for keyboard controls though.
This does seem the easiest option, just add configurable controls to the keyboard module, plus an option to set the orientation needed to match the perspective. Thanks!