J
jiangca
Guest
Hi, I'm new to gamemaker and have been using drag and drop to create a math shooting game. (I have also converted some drop and drop code to gml). The player is shown the solution and five different math equations, one of which equals the solution. They must shoot a bullet at the object that holds the equation to answer the question.
Behavior is normal until the player answers 11 questions correctly (score increase to 110 points). Then the player object disappears (player is normally pictured right under the solution text). However, the object of the player still exists because you can still move left to right and shoot bullets. Getting one more question right causes the fish in the background and any additional bullets to draw every frame as they move. The drawn score also stops updating even though the variable that contains the score still functions normally.
This bug only occurs the first time the game is run from gamemaker. Going back to the main menu within the game and playing again after witnessing the bug does not cause this error to occur. However, if the player returns to the main menu and plays again after getting 4 questions correct, this bug appears after the player gets 7 questions right (effectively adding back up to 11 correct questions). Additionally, only correct answers affect this bug. Answering 11 questions incorrectly, or even 20 incorrect and 11 correct, does not cause this to happen.
Any insight into what is causing this error would be greatly appreciated.
Thanks!
Behavior is normal until the player answers 11 questions correctly (score increase to 110 points). Then the player object disappears (player is normally pictured right under the solution text). However, the object of the player still exists because you can still move left to right and shoot bullets. Getting one more question right causes the fish in the background and any additional bullets to draw every frame as they move. The drawn score also stops updating even though the variable that contains the score still functions normally.
This bug only occurs the first time the game is run from gamemaker. Going back to the main menu within the game and playing again after witnessing the bug does not cause this error to occur. However, if the player returns to the main menu and plays again after getting 4 questions correct, this bug appears after the player gets 7 questions right (effectively adding back up to 11 correct questions). Additionally, only correct answers affect this bug. Answering 11 questions incorrectly, or even 20 incorrect and 11 correct, does not cause this to happen.
Any insight into what is causing this error would be greatly appreciated.
Thanks!