AGS 4: Remove Walkable Area [Solved]

Started by Vincent, Wed 27/11/2024 15:16:01

Previous topic - Next topic

Vincent

Hello Agser I am using AGS-4.00.00.06-Alpha11 and I was trying to use the functions Remove/Restore WalkableArea but it gives me undefined token. Altough the manual doesn't say this is an obsolate command and I was wondering to know how to do that?

MSNBrianC

I'm new here but I would suggest posting the snippet of your code. I've gotten that error before if my code was written slightly incorrectly.

Crimson Wizard

Quote from: Vincent on Wed 27/11/2024 15:16:01Hello Agser I am using AGS-4.00.00.06-Alpha11 and I was trying to use the functions Remove/Restore WalkableArea but it gives me undefined token. Altough the manual doesn't say this is an obsolate command and I was wondering to know how to do that?

We don't have an updated manual for AGS 4.0 yet.
The only documentation of new functions or changes to old functions may be found in change notes in the 4.0 release thread: https://www.adventuregamestudio.co.uk/forums/ags-engine-editor-releases/ags-4-0-early-alpha-for-public-test/

All the walkable area commands are now accessed through "WalkableArea" struct and "walkable[]" global array.

For example, if in AGS 3.* you had:
Code: ags
RemoveWalkableArea(3);
RestoreWalkableArea(3);

In AGS 4.0 you do:
Code: ags
walkarea[3].Enabled = false;
walkarea[3].Enabled = true;



NOTE that you may still enable these original commands back if you select "Script API Version = 3.6.x" in the General Settings.

Vincent


Crimson Wizard

Please, also mention AGS 4 in the topic titles, because this version may be different from AGS 3 in a number of ways, and not many people have a knowledge of it yet.

Vincent

Quote from: Crimson Wizard on Wed 27/11/2024 15:50:38Please, also mention AGS 4 in the topic titles, because this version may be different from AGS 3 in a number of ways, and not many people have a knowledge of it yet.

Thanks all done!  :)

SMF spam blocked by CleanTalk