Gray Scene in Tutorial

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By PocketPixie

Hi everyone,

I’m having an issue currently with the Create Your First Game tutorial. When creating the Mob scene and finishing it, when I press the play button all I see now is a Gray Screen instead of seeing both the player and the monsters.

When I press Play I am presented with a gray screen. When a play a scene, I narrowed it down that it is the player screen now not showing since I added the Mob scene to it.

How do I fix this and why does the grey occur?

EDIT: I have found the answer. Because the Connect button is broken I ended up using C# code from the tutorial which is not named the same as the actual method in the debugger. I’ve changed this and now the gray-screen is gone. I can see the player sprite now in the Player Scene

:bust_in_silhouette: Reply From: sharpy19

I ran into the same issue-- gray screen, no code errors, nada. Not a great intro to godot so far.

Where are you in the tutorial?

exuin | 2021-04-02 17:46

Added this code:
position += velocity * delta
position.x = clamp(position.x, 0, screen_size.x)
position.y = clamp(position.y, 0, screen_size.y)

and failed here:

Click “Play Scene” (F6) and confirm you can move the player around the screen in all directions.

Gray screen, no errors or clues to proceed. Would love advice – I can see the potential of Godot but frustrated so far.

sharpy19 | 2021-04-02 17:56

The gray screen is just the default background color. If the player’s not showing up, maybe you misread something in the tutorial? Maybe you should go over it again.

exuin | 2021-04-02 18:04

I’ve been over and over it already but will go over it some more.:slight_smile:

sharpy19 | 2021-04-02 18:11

Or you can just upload the project and send it to me

exuin | 2021-04-02 19:10