Comments

Log in with itch.io to leave a comment.

ERROR in

action number 1

of Draw Event

for object oController:

ds_list_size argument 1 incorrect type (undefined) expecting a Number (YYGI32)

 at gml_Object_oController_Draw_0 (line 35) - if (ds_list_size(typeList) > 1) {


gml_Object_oController_Draw_0 (line 35)

(1 edit)

Hi SGNQuen, did you change something in your code after purchasing the asset?

The error showing up is telling you that the selected Unit's type parameter is not an array (or List). So you probably edited the Json (?).

If so, make sure that in your units at the "type" parameter, you set a list of types even if the Unit has just one type.

Example:

MyMonoTypeUnit {

       "type":  ["grass"]  => Even if the Unit has one type, we use a list with one entry

}

MyMultiTypeUnit {

       "type":  ["grass", "poison"]

}


Let me know if that was the issue :)

(+1)

...and there it is. [Purchases and tests it immediately].

Thank you!