Asset - Objects Button Pack


Available for GMS 2
(with the exception of array initialization, should be backwards compatible with GM:S 1)


This project is meant to be comprehensive and easy to use. The goal is to provide the foundation for virtually any standard button, slider, toggle, etc that you would want and the ability to add or modify them to truly provide you with any button you can conceive of.

Code is heavily commented and contains a demo project that provides examples of creating buttons purely through code or through the room editor along with a mini-game.

Example Use

scr_create_virtual_joystick(x, y, layer, back_sprite, front_sprite, radius, deadzone, gui);
scr_create_general_button(x, y, layer, sprite, activate_with, delay, script, hotkey, gui); 
scr_create_slider(x, y, layer, slider_type, length, invert, script, hotkey, movement_type, gui);

Continuing Development

This project is complete as is, but does have further things planned which I will likely get to in the next month or so, possibly faster if there's interest. The things that are not currently in but that I plan to add are listed in the ROADMAP section. Note that the sale price is currently reflective of the fact that I still plan to add things, so buy now while its cheap!

This Pack CURRENTLY Contains:
  • General Purpose buttons, sliders, etc., all of which you can create with a single script
  • The ability to designate whether buttons activate on press, release, or hold
  • Keyboard/Controller Support
  • Hotkey Support
  • A variety of useful utility scripts
  • Button Types (all buttons work with both GUI and Room Space)
    • General Buttons
    • Sliders (including snap to user defined positions)
    • Toggles
    • Switches
    • Radio Buttons
    • Dropdown Menus
    • Virtual Joystick
    • Virtual Dpad
    • variations and more
  • An example project illustrating a variety of uses, including a very simple game
  • Multitouch support
  • Rollover Popups

Important notes:
  • Please read the README. It should be helpful.
  • I tried to test everything, but there's a lot. I'm already using this asset in my own projects and haven't found any bugs, but I probably missed some somewhere. If you find any, please let me know through the Marketplace's Contact Publisher link and I will fix it and update the project for everyone.
  • If you have suggestions for additions, please contact me as I would likely be willing to add things in.
  • Contact me with questions as I will provide continuing support.
Last edited: