Hi, i am using DB Pro to learn to make game and have been tryin to use file studio to generate the code for the maps i create into my games. However when I generate the code and make the relevant calls in the main program i et an error that says "User function decleration must contain no spaces, no numerical first character and include a set of brackets at line 134" pointing to this code generated from the .tsd file made in tile studio.
61: Function MapWidth (map)
62: If map = LAYER_Tiles1_Map1 Then ReturnValueInt = 20
63: EndFunction ReturnValueInt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, i am using DB Pro to learn to make game and have been tryin to use file studio to generate the code for the maps i create into my games. However when I generate the code and make the relevant calls in the main program i et an error that says "User function decleration must contain no spaces, no numerical first character and include a set of brackets at line 134" pointing to this code generated from the .tsd file made in tile studio.
61: Function MapWidth (map)
62: If map = LAYER_Tiles1_Map1 Then ReturnValueInt = 20
63: EndFunction ReturnValueInt