GameMaker Studio 2 (all)
Icon

Arg Ext

Stephen Loney

You must be logged in to obtain assets

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.

[Scripts & Macros]

  • arg_event_user()
  • arg_instance_create()
  • arg_instance_create_depth()
  • arg_instance_create_layer()
  • arg_instance_destroy()
  • 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).

Age Rating: 4+

Versions

GMS1 - Version 0.9.90. Published November 3, 2015

GMS2 - Version 1.0.0. Published March 9, 2018

*Added arg_instance_create_depth() *Added arg_instance_create_layer() *Added arg_instance_destroy_id()

GMS2.3 - Version 1.1.0. Published December 7, 2020

*Improved project organisation for GMS 2.3+ *Merged arg_instance_destroy_id into arg_instance_destroy *Cleaned codebase

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait