sonchosmilax
Member
Hi everyone,
I have a troubling issue with an object in Gamemaker. It's called obj_game, and I can see in its corresponding folder (navigating to the objects/obj_game directory) that it has multiple event scripts:
Create_0.gml
Draw_64.gml
Keyboard_76.gml
KeyPress_27.gml
KeyPress_76.gml
KeyPress_82.gml
Other_2.gml
I can open all of these in a text editor and confirm they have simple, compilable GML code.
However, in the IDE, I only see three events associated with the object: Create, Key Press - R, and Game Start. This is true even if I reimport objects/obj_game/obj_game.yy as a new object.
I noticed a few odd things:
I have a troubling issue with an object in Gamemaker. It's called obj_game, and I can see in its corresponding folder (navigating to the objects/obj_game directory) that it has multiple event scripts:
Create_0.gml
Draw_64.gml
Keyboard_76.gml
KeyPress_27.gml
KeyPress_76.gml
KeyPress_82.gml
Other_2.gml
I can open all of these in a text editor and confirm they have simple, compilable GML code.
However, in the IDE, I only see three events associated with the object: Create, Key Press - R, and Game Start. This is true even if I reimport objects/obj_game/obj_game.yy as a new object.
I noticed a few odd things:
- There's both a Keyboard_76 and a KeyPress_76 event. Maybe from different versions of GS2? Oddly, that's the only keyboard event that actually shows up, and the version that shows up in the IDE is the one formatted as "Keyboard_76". I've tried reformatting the other keyboard events the same way, to no avail. I've also tried removing the duplicate.
- If I redefine an event from the IDE, it will actually overwrite the corresponding file. For instance, Draw_64.gml has existing code, but the Draw GUI event doesn't show up in the IDE. But if I create a new Draw GUI event from obj_game in the IDE, it will indeed overwrite the Draw_64.gml file with a new empty Draw GUI event.