Description

Arg Ext provides a solution for passing arguments to Create, Destroy, and User Defined events. It also allows for Destroy and User Defined events to return values.

Documentation can be found in the supplied script ARG_EXT_INSTRUCTIONS. (ARG_EXT_SOURCE for GMS 1.4)

[Scripts & Macros]

  • arg_event_user()
  • arg_instance_create()
  • arg_instance_create_depth()
  • arg_instance_create_layer()
  • arg_instance_destroy()
  • arg_instance_destroy_id()
  • arg_ext_get(0..15)
  • arg_ext_0..15
  • arg_ext_count
  • arg_ext_return

[Example]

/// Some Event
{
    // Call user event 0, giving it two numbers to add and return
    value = arg_event_user(0, 10, 25);
}

/// Event User 0
{
    // Assign arguments to local variables
    var val1 = arg_ext_0;
    var val2 = arg_ext_1;

    // Add numbers and return value from user event
    arg_ext_return = val1 + val2;
}

Be sure to check out my other assets:

End User Licence Agreement (EULA).

Version 0.9.90. Published November 3, 2015

Created with GameMaker: Studio v1.99.460

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Anonymous 29 March 2019

thanks

yes


Gravatar

Ryan S 18 June 2017


Gravatar

Anton P 08 October 2016

wow, very handy!

Package contents

Loading, please wait

What is the issue?

Back to Top