L’obiettivo di CreateObjectByVal è quello di sopperire a due specifiche mancanze dell’engine di Construct (2 e 3): la creazione di uno specifico oggetto in una famiglia, e il pick automatico, qualora l’oggetto di una famiglia appartenga anche ad un contenitore, degli oggetti correlati.

Tramite CreateObjectByVal sarà possibile, tramite una variabile d’istanza a livello di famiglia, opportunamente valorizzata per ogni oggetto appartenente alla famiglia stessa, eseguire un’azione Create Familiy Object per far sì che venga creato un nuovo oggetto della famiglia, avente il valore indicato nell’azione. 

Ma cosa accade se uno o più oggetti della famiglia fanno anche parte di un contenitore, e di essi ne viene fatto il pick tramite l’oggetto famiglia?

L’operazione in oggetto sarà possibile tramite la condizione Pick family by UID, alla quale è possibile chiedere se restituire, nella selezione, anche gli oggetti collegati al contenitore o meno.

- - - - -

The goal of CreateObjectByVal is to overcome two specific shortcomings of the Construct engine (2 and 3): the creation of a specific object in a family, and the automatic pick, if the object of a family also belongs to a container, related objects.

Through CreateObjectByVal it will be possible, through a family level instance variable, appropriately valorized for each object belonging to the same family, to execute a Create Familiy Object action in order to create a new family object, having the value indicated in the 'action.

But what happens if one or more objects in the family are also part of a container, and are they picked by the family object?

The operation in question will be possible through the condition Pick family by UID, to which it is possible to ask whether to return also the objects connected to the container in the selection.


StatusReleased
CategoryOther
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(2 total ratings)
Authorfiaful
Made withConstruct
Tagsaddon, Construct 2, construct-3, create, gameslab, instance, object, variable

Download

Download NowName your own price

Click download now to get access to the following files:

CreateObjectByVal.c2addon 7 kB
CreateObjectByVal.c3addon 23 kB
CreateObjectByVal-sample-simple.capx 175 kB
CreateObjectByVal-sample-containers.capx 190 kB
CreateObjectByVal_v_1_0_0_1_IT.pdf 1 MB

Leave a comment

Log in with itch.io to leave a comment.