In my game i am simply trying to make the physics of a certain character start later on in the game to do that i simply create a function which contains the physics.addBody code and have a timer.perform with delay underneath of it. When the game finishes a button shows on the screen, when i click it during the transition it displays this error, could someone help me here?
local function spawnCharacter() physics.addBody( character1, "dynamic", {filter=guyCollisionFilter} ) end timer.performWithDelay( 10000, spawnCharacter, 0 )
That is where the error occurs, if you need more code let me know.