My game has two layouts. First is a "Title" layout where player hits enter and then game goes to the "game" layout. In my game the blocks are falling from top to bottom one at a a time.
My problem is that when player is waiting for too long in "title" layout and then hits enter, the "game" layout is starting but it looks like this "game" level was started simultaneously with title layout, because the blocks are not falling one by one but five or four at once first and then normal.
My condition are:
keyboard -> when player hits "enter" ->go to layout "game"
at start of level ->reset global variables