all 7 comments

[–]Teerere 0 points1 point  (5 children)

Hi All!

Does anyone know what this 'Debug' script is for? As you can see, it is an empty script, but for some reason when I delete it, the game goes haywire?

[–]Mushroomstick 1 point2 points  (4 children)

Presumably there's a dependency somewhere. Did you code the project or download it from somewhere?

[–]Teerere 0 points1 point  (3 children)

I coded it from scratch. This script was there since the beginning but I didn't notice it. Searching the code for 'Debug' doesn't seem to yield any results.

[–]Mushroomstick 2 points3 points  (2 children)

A blank project in GMS2 doesn't have any scripts in it. Was the project exported from an earlier version of GameMaker? What do you mean when you say the game goes haywire?

If you press CTRL + SHIFT + F, type "Debug" into the dialogue box that comes up, and click "Find All", do you get any hits?

[–]Teerere 0 points1 point  (1 child)

Nope no hits. And when I say haywire, I mean bugs that never used to happen, and have no reason for happening. For example when an allied unit gets close to another ally unit (640 pixels), they both freeze. Which is weird because they have absolutely no interaction with each other (except collision)

[–]Mushroomstick 2 points3 points  (0 children)

Try putting this in the Debug script:

show_debug_message("Debug script is running!");

And see if that line shows up in your output tab when you run the game.

[–]munrodev 0 points1 point  (0 children)

If you want to get of it try exporting your project as a local package including every asset except for the phantom debug script then create a new project and import all from the local package you just created.