Skip to content

Missing Object Event names #211

Open
@adam-coster

Description

@adam-coster

GameMaker's Object Events, like "Create", "Step", and so on, are represented in the project files by numeric IDs. The human-readable name is not anywhere in the project files -- it comes instead from the GameMaker IDE.

To be able to show human-friendly event names in the Stitch resource tree, I've had to manually track down the associations between the Object Event file names and numbers and their in-IDE counterparts. I've only taken the time to do that for the events we use at Bscotch.

PRs are welcome to provide those missing event names! But you can also just add replies here.

Here's how you'd do it when you find an event that doesn't show up in the Stitch sidebar:

  • Find the project file that corresponds to that event. It'll be named something like Create_0.gml.
  • There will be a sibling file, called YOUR_OBJECT.yy, that describes your object. It'll include an eventList field with an array of objects describing your events. Use that to figure out the numeric eventType for the event. (The eventNum is the numeric suffix for the event's filename, e.g. Create_0.gml has eventNum of 0.)
  • Get the exact English name for that event as you see it in the GameMaker IDE.

Once you've got that info, you can reply here with it. Or, even better, submit a PR:

  • Update the objectEvents to add an entry including all of that info. Try to add it in an order that makes sense.
  • Submit the PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⌨️ vscodeThe Stitch extension for VSCode🆘 help wantedLower priority for Bscotch, so external help needed to resolve

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions