BLOG

Sometimes I write things, or tutorials, or things

Super Simple Buttons - GameMaker 2.3+

Here are some super simple buttons for GameMaker 2.3+ using a constructor function.


This was made to be simple for new users who need some easy buttons (hence the name!) that work 'out of the box'. It doesn't have any advanced features, but you can easily modify this to add your own.


You create a new button in the create event of your controller object, using the following code:



You supply up to three arguments. The first argument being any text you'd like to display on the button. If you don't want to display any text, just use empty quotes. The second argument is the button image. The third argument is a hover image. If you don't want a hover image, you can leave this argument out. Here is an example of a button without any text or hover image:








© 2020 matthavik