I am trying to change my inventory spacing, and IÃ, put
SetInvDimensions (40, 40);
in the function game_start() section, and when i try to save my game this is what i get:
---------------------------
Compile Error
---------------------------
There was an error compiling your script. The problem was:
In: 'Global script'
Error (line 6): Undefined token 'SetInvDimensions'
Do you want to fix the script now? (Your game has not been saved).
---------------------------
YesÃ, Ã, NoÃ, Ã,Â
---------------------------
Can someone please help me with this? Thank you.
----
Thanks for the quick response!
If you're using AGS V2.7+, SetInvDimensions() was already obsoleted by the Inventory window properties
ItemHeight and
ItemWidth, example from manual:
Quote
invMain.ItemWidth = 50;
invMain.ItemHeight = 30;
(You need to change invMain to the object script name of your inventory window as shown in the GUI editor)
If you still want to use old syntax, you need to uncheck the "Enforce object-based scripting[/b] option. It's recommended that you move on to use the new style though.