Hi all,
can someone help me and identify what is the problem with my game?
–First Platform
panel = display.newImage(“panel.png”)
panel:translate(-270, -242)
panel:scale( 0.5, 0.5)
physics.addBody( panel, “static”, { friction=0.3, shape=panelShape } )
–Second Platform
panel2 = display.newImage(“panel.png”)
panel2:translate(-150, -300)
panel2:scale( 0.5,0.5)
physics.addBody( panel2, “static”, { friction=0.3, shape=panelShape } )
–Third Platform
panel3 = display.newImage(“panel.png”)
panel3:translate(-250,-350)
panel3:scale(0.5,0.5)
physics.addBody( panel3, “static”, { friction=0.3, shape=panelShape } )
–Bubble
local bubbleGroup = display.newGroup()
bubble = display.newImage(“bubble.png”)
bubble:translate( -250, -400)
bubble:scale( 0.5, 0.5)
physics.addBody( bubble, { density=1.0, friction=0.3, bounce=0.3 } )
^^This is the code for my 3 platforms and the bubble. However, when I start the game up in the simulator the bubble doesn’t drop down as it should but instead flies to the side. Any help would be appreciated!
P.S, I have my physics engine activated and also my gravity settings set to physics.setGravity( 0, 9.8 )