Expecting a closing ")" after call arguments when all are there on autoload call

Godot Version

func _ready() → void:
LevelGenerator.generate(map:TileMap, w:int, h:int, minRoomSize, maxRoomSize)

Question

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)
3 Likes