function scene:create( event ) local sceneGroup = self.view physics.start() ---------------------------- local BackGround = display.newImageRect("BackGround.png", 1080, 1920) local floor = display.newImageRect("floor.png", 351, 32 ) floor.x = display.contentWidth \* 0.5 floor.y = 520 physics.addBody(floor, "dynamic") return true end
thats the code that makes the image pop up… says that error on line 32 which is “physics.addBody(floor, “dynamic”)”
ive tried static and other things . physics is on… maybe is something with the collision that i want happen… but when i remove all the collision functions and locals it still gives the error… i tried making a timer didnt seem to work maybe i did it wrong idk thanks for any help
i need to put the physics object into my scene show scene … thanks for the tips tho they will help me in the future