5

I have a problem, the square and the circle you can see in the picture.

Do not know how to delete this, can anyone help me for do not show it?

The example of code is this:

supermanSpriteSheet = sprite.newSpriteSheet("superman.png", 100, 34)
supermanSprites = sprite.newSpriteSet(supermanSpriteSheet, 1, 4)
sprite.add(supermanSprites, "supermanes", 1, 4, 1000, 0)
superman = sprite.newSprite(supermanSprites)
superman.x = 0
superman.y = 100
superman:prepare("supermanes")
superman:play()
superman.collided = false
fisica.addBody(superman, "static", {density=.1, bounce=0.1, friction=.2})
screenGroup:insert(superman)
supermanIntro = transition.to(superman,{time=1000, x=100, onComplete=supermanReady})

The image of game:

img

Cœur
  • 37,241
  • 25
  • 195
  • 267
Chete
  • 51
  • 1

1 Answers1

4

You may have enabled physics rendering mode/DrawMode as hybrid in your game. So, comment the following line:

physics.setDrawMode( "hybrid" )

or replace it with the following line:

physics.setDrawMode( "normal" )

For more details, visit: physics.setDrawMode

Keep Coding..................... :)

Krishna Raj Salim
  • 7,331
  • 5
  • 34
  • 66