Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(2 edits)

Today devlog 07 (Translated into Papago)

I was going to wrap up the option menu today.

First, I added a language setting item that I forgot.

Then I created an event to modify the value.

I divided it into the menu where you can modify the value with the left and right keys and press the crystal key to move on to the next menu.


??

The text on the label overlaps with the previous value, whether frame drop is occurring.

And the price went up twice, not once.

I thought it was strange, so I checked the print function and debug window, and there were two events that updated the value.

I looked through the script once again, but the event to update the value only once when I modified the value.

Besides, it's a 2D game, so there's no lag, and the previous value stays on the screen, so it's strange that it overlaps.

In the past, when I used the _Input() function to create a game, I pressed it once, and events often occurred twice.

I still don't know the cause. But I thought it might have something to do with it, so I moved the event to the _process() function.

But it was the same.

While I was frustrated, an idea hit my mind.

'Maybe, Isn't there two option menu?'


lol

I ran the game and checked the remote tab of the inspector.

I checked the script of the main menu for why it was created twice because the option menu is created in the main menu scene.

But there was no problem with the main menu.

And then there's another thought that goes through my head.

'Maybe, Isn't there two main menu?'


Oh, don't bother me.

The main menu is created in the title scene.

So I added a print function in the title scene and checked the debug window.


The contents were made to run only once when any key was entered using the pool variable.

The input part seems to run only once, but the function below it has been called twice...

The cause is unknown.

And _input may have caused the problem.

If I can't find the cause of this problem by tomorrow, we're just going to press a certain key to fix it.