Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Blano on Thu 13/08/2020 13:53:28

Title: [SOLVED] how to force character direction?
Post by: Blano on Thu 13/08/2020 13:53:28
hi folks, i'm a user since last year but i've been putting ags in the drawer for a while .. but now here i am, again to ask for help from more experienced people than me.
I turn to the question, is there a way to skip empty loops in a walk cycle? If so, how? i need it for a isometric view game!!

thank you for your help
Blano
Title: Re: how to force character direction?
Post by: Slasher on Thu 13/08/2020 14:29:35
Which loops do you want to skip?
Title: Re: how to force character direction?
Post by: Blano on Thu 13/08/2020 15:13:47
Hello Slasher thx for your reply
, i would like to skip up down right and left loops to set visible just the oblique ones!
Title: Re: how to force character direction?
Post by: Slasher on Thu 13/08/2020 15:26:34
Try just using Loops 4,5,6,7

In general settings may need to turn to false 'characters turn before walking' etc
Title: Re: how to force character direction?
Post by: Blano on Thu 13/08/2020 15:34:50
Hello thank you again, i posted here pecause i tried yet to add to corresponding positions but cant see the Player moving with the missing positions
Title: Re: how to force character direction?
Post by: Slasher on Thu 13/08/2020 15:37:32
I usually only take out loops 0 and 3.

set character loop in room load..

are you waking by mouse only?
Title: Re: how to force character direction?
Post by: Blano on Thu 13/08/2020 16:25:21
yes just with mouseclick
Title: Re: how to force character direction?
Post by: Slasher on Thu 13/08/2020 16:31:45
You need to disable keyboard walk commands..


In Game Start in Global
Code (ags) Select

// set KeyboardMovement movement mode
KeyboardMovement.Mode = eKeyboardMovementModeNone;


Title: Re: how to force character direction?
Post by: Blano on Fri 14/08/2020 09:51:20
hello again, i have just implemented the isowalk module from https://www.adventuregamestudio.co.uk/forums/index.php?topic=50492.0 (https://www.adventuregamestudio.co.uk/forums/index.php?topic=50492.0)thread but can't figure out where i make the mistake..

i get error from line 108 of the script :(108): Error (line 108): undefined symbol 'GetWalkableAreaAt', can you help me?
Title: Re: how to force character direction?
Post by: Crimson Wizard on Fri 14/08/2020 10:21:10
Quote from: Blano on Fri 14/08/2020 09:51:20
i get error from line 108 of the script :(108): Error (line 108): undefined symbol 'GetWalkableAreaAt', can you help me?

In AGS 3.5.0 GetWalkableAreaAt was replaced with GetWalkableAreaAtScreen. There's also now GetWalkableAreaAtRoom which use room coordinates instead for convenience (and may be more usable if you are passing character's position there for example).

If you meet some functions in an old script module that no longer work, check "Upgrading from a previous version" topics in the manual, they usually contain tables of deprecated functions and new ones corresponding to these.
Title: Re: how to force character direction?
Post by: Blano on Sat 22/08/2020 09:35:44
thank you all for your replies!
i don't know why my character disappear for few seconds in walk mode, any ideas? i set to false the "turn before walk in the character tab and in general settings"

EDIT
solved adding missing loops! thank you for your help!!