Gdevelop: Black screen if an object has a Physics2 behaviour

Created on 31 May 2019  路  4Comments  路  Source: 4ian/GDevelop

Describe the bug

If I add a Physics2 behaviour on any object in my scene, the screen is black with 100% in white in preview

To Reproduce

Steps to reproduce the behavior:

  1. Create a new project
  2. Add a new scene
  3. Add a new object (sprite)
  4. Add an image for this sprite
  5. Put the object in the scene
  6. Add a Physics2 behaviour to this object
  7. Preview the game

UPnZc0e

Other details

  • Windows 10 1809
  • GDevelop 5.0.0-beta70 desktop
馃悰 bug

All 4 comments

Can you post a zip file containing the game?

Here it is. I reproduced the bug in a new game file with only a sprite and a physics behaviour.
games.zip

Thanks, that was useful. It's due to a regression in latest version where the gravity and scale properties of the physics engine are not initialised properly by the extension when the behavior is first added to an object. A "workaround" could be to use a game where physics engine is already added to some objects. (If all objects with the physics behavior are deleted in the editor, the bug will trigger again)

I'll try to push a fixed version this week-end, sorry about this.
Fixed in ea059947026fb13196382fed79cc14224856216d

I confirm it's working now in beta72, thanks @4ian :)

Was this page helpful?
0 / 5 - 0 ratings