Video summary

How to make BUTTONS in Geode (PART 2)

Main summary

Key takeaways

Technology

Adding a Custom Button to Geometry Dash with Geode

The tutorial by OmgRod demonstrates how to add a custom button to Geometry Dash using Geode.

Steps

  1. Hook the menu layer. Create a MenuLayer hook and override its init function. Return false if the original initialization fails; otherwise, continue and return true.

  2. Find where the button belongs. Open Geode DevTools in-game with F11 and inspect the scene hierarchy. The tutorial identifies bottom-menu as the node to add the button to.

  3. Create the button. Use the Geode extension for VS Code and its sprite browser to find an image in the game’s sprite sheets. The example uses a “like button” sprite and creates a CCMenuItemSpriteExtra using the sprite-frame name.

  4. Add a click handler. Connect the button to an onButtonClick function, passing the sender object required by the menu selector. The example handler displays an alert popup saying the button was clicked.

  5. Attach and test the button. Add it as a child of bottom-menu, build the mod, and launch the game to verify that the button appears and opens the popup.

Dependency

The tutorial says the mod needs a dependency on Geode Node IDs in mod.json. Add it under dependencies, mark it as required, and specify a compatible version greater than 1.20.1.

The presenter encounters build problems and retries before successfully testing the button, but does not explain the initial cause in detail.

Rate this summary

Your feedback will help improve summaries.

Improve this summary

Reprocess with a stronger model when the summary feels incomplete or inaccurate.

Pro

Translate summary in another language

Pro

Ask questions to this video

Chat for follow-up questions, clarifications, and source-backed answers.

Coming soon

Share this summary

Original video