How do I troubleshoot black screen?

0 favourites
  • 3 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • Hello all,

    I'm having trouble with something that I assume is very basic. I've searched the forums but can't quite find what I'm looking for. My first game has just couple of events. When I preview, rather than showing the assets on the layout, I just get a black screen. I must be doing something wrong with the basic setup of my sprites.

    Thanks for any help you can provide, and please let me know if additional details are needed.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You have a while loop in the second event that runs infinitely. That is why the C3 runtime never will render the first frame, so you get a black screen.

    Since you don't have any other condition, it basically reads:

    While () : Do stuff.

    I guess your intent was to only add 0.1 to pump while E is pressed.

    In that case try the following:

    Keyboard: Key E is down: Add 0.1 to Pump

    This will at 0.1 to Pump every tick while E is pressed, basically meaning 6.0 per second (since the engine runs at 60 frames per second).

    If you need smaller amounts, either use a smaller value, or add another condition like every 0.1 seconds.

  • Hey thanks for the quick reply! That did it. Appreciate the workaround to accomplishing something similar, as well.

    Cheers

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)