How can I make an obstacle that is coming inside of the circle so the runner, who is inside on the circle can jump through that ?
One more thing:
local physics = require(“physics”)
physics.start()
physics.setGravity(0, 9.8)
local background = display.newImage(“bg.png”)
background.x = display.contentWidth/2
background.y = display.contentHeight/2
local circle = display.newImage(“circle.png”)
circle.x = display.contentWidth/2
circle.y = display.contentHeight/2
local runner = display.newImage(“runner.png”)
runner.x = display.contentWidth/2
runner.y = display.contentHeight/2
runner:scale( 0.5, 0.5)
physics.addBody(circle, “static”, {density=1, bounce=0, friction=.2, radius= 360})
local circlespin = transition.to(circle, {time = 3000, rotation = 360, iterations = -1})
This is my code,but when I add body (Runner) it disappears,when i make him “static” he stays,but when I make him “dynamic” or something else he disappears.Why?
