I’m trying to get my level to refresh by using director class however when i try to do so i get this error message in the terminal:
Runtime error
…Users/marthwolf/Desktop/Bounce Squirrel/director.lua:117: ERROR: table expected. If this is a function call, you might have used ‘.’ instead of ‘:’
stack traceback:
[C]: ?
[C]: in function ‘insert’
…Users/marthwolf/Desktop/Bounce Squirrel/director.lua:117: in function ‘loadScene’
…Users/marthwolf/Desktop/Bounce Squirrel/director.lua:394: in function ‘changeScene’
/Users/marthwolf/Desktop/Bounce Squirrel/main.lua:11: in function ‘main’
/Users/marthwolf/Desktop/Bounce Squirrel/main.lua:16: in main chunk
Runtime error: …Users/marthwolf/Desktop/Bounce Squirrel/director.lua:117: ERROR: table expected. If this is a function call, you might have used ‘.’ instead of ‘:’
stack traceback:
what should i do to fix this error? [import]uid: 71568 topic_id: 13050 reply_id: 313050[/import]