Discord
Login
Community
DARK THEME

map.get Problems

Hello, i am trying to do some logics to get the Name or the Sizes of a Map or Tile-Names. But i don't get anything. The shell always says:

Warning: map.get("level1") is not a function, in file "main" at line 5, column 33

Where do i have to copy the code?

And can i print a value out of a function? Like print (map.get.x) ?

I know, that there are some librarys, but i wanted to understand how they work. Would be realy kind, if you could help me :)

Thx

map = maps["level1"]

print( map.get(x,y))

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community