Self Function

The Self Function behavior is an addon that extends the features of the application to implement instance-based functions on both Construct 2 and Construct 3.

Features include all the build-in function features of both Construct 2 and Construct 3, but for all instances.

The best benefit for this addon is that it supports all editors and runtimes of Construct. Both, Construct 2 and Construct 3.

It implements functions on object instances.

Intstructions

1. The first step is to add the Self Function behavior into an object in the project.

2. These steps are explained below. For more information, visit the Construct 3 Manual's behavior reference.

3. Do this by creating a world object (instance based), an object that is interactive with the layout, for example the Sprite object.

4. Select the object instance, then from the properties bar, click Edit Behaviors.

5. Once the dialog pops up, press the Add new behavior button.

6. A behaviors list dialog popup will show, with the list of available behaviors compatible with the currently selected object. If installed properly, the Self Function behavior will be on that list.

7. Press add or double-click on the behavior, then it'll be added to the object's behavior list.

 

Features

The Self Function is a behavior addon that implements instance based function features into an object on an application made by Construct 2 or Construct 3.
It allows you to easily apply a function to each instances of an object, dynamically

This is more efficient to use than the built-in Function when it comes to passing ids through parameters. 
This also allows you to extend or reuse the SOL (Selected Objects List), hence making custom object classes.

Th Self Function does all these per instance, useful for less event count, performance, dynamics and readability.

Features :

  • Per instance based function implementation.

  • Inherits selected instances from passed self function conditions, useful for dynamic assigning and filtering of instances for  methods calls.

  • Easy to use and no programming required.

  • Well-supported and fully tested.

  • Original Function features included in the behavior, for object instance implementation.

  • Similar Construct 2 and Construct 3 Function ACEs. 

  • Construct 2 editor support.

  • Construct 3 editor support.

  • Construct 2 runtime.

  • Construct 3 runtime.

  • Forwards compatibility support.

  • Runtime maintenance support.

 

Actions, Conditions & Expressions

Actions

Define Parameters :

  • Call Function - Self Function Call triggered by a unique name. Instances are selected from the action it was called.

    • Function Name - Unique Function Name of this Object.

  • Add a Parameter - Add a Parameter for the next function. Can only be used with 'Call Self Function'.

    • Parameter Value - Parameter value for a parameter.

Input Parameters :

  • Call Function with Params - Self Function Call triggered by a unique name with parameters. Instances are selected from the action it was called. Parameters are separated with '|'.

    • Function Name - Unique Function Name of this Object.

    • Parameters - Parameters are separated with '|'.


Universal :

  • Set return value - In an 'On Self Function' event, set the return value.

    • Value - A number or some text to return from the function call.

  • Call expression - Call a function using a typed expression (via SelfFunction.Call()).

    • Expression - An expression to run, generally of the form Function.Call("func", ...).

Conditions

Universal :

  • On Function - Self Function of the object which is identified by a unique name.

    • Function Name - Unique Function Name of this Object.

  • Compare Parameter - Self Function of the object which is identified by a unique name.

    • Parameter Index - The Parameter Index of the Self Function.

    • Compare By - The compare by method of the parameter value.

    • Parameter Value - The Parameter Value of the self Function.

Expressions

Universal :

  • ParamCount - Return the number of params available.

  • Param - Syntax: 'Object.SelfFunction.Param(Index)'. This will return the value of the parameter. 0 if null.

    • 0 - ParamIndex.

  • ReturnValue - Get the value set by 'Set return value'. 0 if null.

  • Call - Get the value set by 'Set return value'.

    • Name - The name of the function to call.

 
 

Game Project

Sample Setup Project

Specifications

  • Instructions - The sample project has comments and instructions on how to use the addon and its features.

  • A.C.E. Coverage - It covers the implementation of each action, condition and expression.

  • Tips and Tricks - It provides some tips and tricks to a better use of the addon and of the event-sheet system alongside it.

Supporters

Only

Easy Game Project

Sample Setup Project

Specifications

  • Instructions - The sample project has comments and instructions on how to use the addon and its features.

  • A.C.E. Coverage - It covers the implementation of each action, condition and expression.

  • Tips and Tricks - It provides some tips and tricks to a better use of the addon and of the event-sheet system alongside it.

Supporters

Only

Get the tools

for your pro games!

Constuct Master Collection - Itch.io
Constuct Master Collection - Discord
Constuct Master Collection - Construct 3

© Construct Master Collection 2020 • All rights reserved

Contact Information: