func _ready() → void: LevelGenerator.generate(map:TileMap, w:int, h:int, minRoomSize, maxRoomSize)
I’m following a tutorial for a drunkards walk algorithm and this what they have for when they call the autoload but I’m getting the error in the title. Their is no difference in the aruments listed and in the ones that are in the generate function.
When calling the function you do not specify the types.
If all of your arguments exist then you will want to use this line, where I removed the types from the function call.
LevelGenerator.generate(map, w, h, minRoomSize, maxRoomSize)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.