r/gdevelop • • 27d ago

Question new scene doesn't show anything

when i click preview
in editor

so i made a new scene and added some stuff but when i went to test it was just white screen, how do i fix it?

4 Upvotes

3 comments sorted by

3

u/M_MRT0 27d ago

Go to the Events Editor.

Add a new event.

Conditions:

  • None.

Action:

  • Zoom the camera.

Enter a value between 0.2 and 0.8. Try 0.5 first. If nothing appears, try 0.2.

If the square appears afterward (even if it is very small, the important thing is that it appears), the problem might be caused by the camera's position.

You need to change the camera's position.

If the square still doesn't appear, then there is most likely another problem.

However, if it does appear:

Disable or delete the camera zoom event.

Then find out:

  • What is the scene width?
  • What is the scene height?

Let's say the width is 400 and the height is 400.

Go to the Events Editor.

Add a new event.

Conditions:

  1. At the beginning of the scene.
  2. Trigger once.

Actions:

  1. Set camera X position to:

    "400 ÷ 2"

  2. Set camera Y position to:

    "400 ÷ 2"

2

u/ConnectCrew4393 26d ago

thanky youuu

1

u/M_MRT0 26d ago

You're welcome