
Review the loop and everywhere any associated variables are set/changed, and you should be able to find the problem (even if it takes a while).
#Gamemaker studio 2 for loop code#
If it is still in the loop, then that is likely where the code is getting stuck. If it (it being the computer) takes an longer than it should to hit the second breakpoint (as in, you wait for a ten seconds to or two minutes (depends on how complex the code is) and it still hasn't hit the second breakpoint), then you should replace the breakpoint at the beginning of the loop to check and make sure it is still in there. When you get to one of the loops remove the first breakpoint and hit the "continue" button in the debugger. (I am using asterisks "*" to represent breakpoints) var doloop = true Please read the forum guidelines before posting, and if you have any programming questions, then they should be posted in the Programming Forum using the 'GameMaker' prefix.

The easiest way to check for these is to put a breakpoint/debugging point at the beginning and just after every while/for/do/ect loop and debug it. Get help from the community on technical issues in GameMaker. Notwithstanding section 1.2 (Access for Adults Only or With Adult Approval), students under 13 years of age may use GameMaker under an Educational License, provided that the Educational Institution shall remain solely responsible for its, its students' and its Authorised Representative's use of GameMaker (including for any content created using. Because the code never finishes looping, it can never get around to drawing anything, so you end up with a black screen. The "doloop" variable is never changed within the while loop, so it is always equal to true and the loop never ends. Its possible that your code is stuck in an infinite loop, here's an example of what that might look like: var doloop = true
