(I’m new)
I have a background which is going to be moving to the left and I added it as a physics body. However, when it moves it goes down automatically because of gravity’s effect. I want gravity in the game but don’t want everything to feel the effect. How do I stop this?
Here’s what I got
[code]
local physics = require (“physics”)
physics.start()
local desertbackground = display.newImage ( “desertbackground.jpg”, 0, 0 )
desertbackground:setReferencePoint(display.TopLeftReferencePoint);
desertbackground.x = 0; desertbackground.y = 0;
physics.addBody( desertbackground, { density = 0, friction = 0, bounce = 0 } )
desertbackground.bodyType = “dynamic”
desertbackground:setLinearVelocity( -40, 0 )
[code] [import]uid: 16789 topic_id: 6435 reply_id: 306435[/import]