Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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 :)