Giter Club home page Giter Club logo

not-so-mod-menu's Introduction

Not-so-Mod-Menu

A debug tool for your GameMaker Studio 2 projects!

For getting started create a local package while inside the Mod Menu project. After that you should import the .yymps file into your project.

After that you're all set! You just now want to add all of your options to the Mod Menu. For doing that, go into the josh_developer_menu object, then go into the create event and inside the options array add a new option.

For initializing the options just do: (inside the options square brackets) new Option(the name of the otpions you want to display, the type of options ("change" if it's more than 1 value, "click if it's just 1 value), [an array that contains every option name], function () { inside here you wanna put the actual function for when the options is clicked})

Click option example:

new Option("Add 10 health", "click", ["10"], function() { oPlayer.health += 10})

Change options example:

new Option("Add gold", "change", [100, 1000, 100000], function () { oPlayer.gold += options[0].values[value_cursor] })

This might seems kinda hard but it's actually not! All I'm doing I'm adding to the player gold oPlayer.gold whatever the user is pressing on the option options[0] the current option .values the array containing all the option values [value_cursor] whatever the user is on in the option values.

After this you're actually all set up and ready to use this debug tool! Have fun!

not-so-mod-menu's People

Contributors

joshuakasa avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.