Hi guys, im new in corona, and im trying to add a camera to follow my player in a 2D platformer
i’ve read the posts about a camera group and adding all the elements to the group, but it is not working for me since my map is made in tiled…
i tried adding the names of the layers as exported in the json file from tiled but then i get an error in lua:
Runtime error
…ajo\corona labs\tutorial tiled map\tutorial\main.lua:60: ERROR: table expecte
d. If this is a function call, you might have used ‘.’ instead of ‘:’
stack traceback:
[C]: ?
[C]: in function ‘insert’
…ajo\corona labs\tutorial tiled map\
i add the player in the main.lua so when i add the player to the camera group i dont get any errors, just weird behavior (the player appears in the end of the emulator screen)
how can i add the map made in tiled to the camera? so the camera can follow my player?
thanks in advance!!