Under review

Transform or Initialize from local variable not working as expected

Ryan 5 months ago in Game Creator updated by Marti (Lead Developer) 5 months ago 1

I have the following Actions set up:

Which refers to the following local variables:

However, when using Instantiate or Transform from a Local Variable, it never updates my object to the correct location. I can place a value manually and it works fine. Am I missing something or is there some subtle bug here? It always keeps it as the origin (0,0,0). Also, I know in the above example that I'm doing a static position for the instantiate, but the transform still isn't working.

Unity version:
Game Creator version:
1.1.6 - PATCH
Under review

Hi Ryan;

I've tested this and everything seems to work fine on my end. However, maybe I'm missing something important. How it behaves is the following:

It instantiates the Marker6 object at the position of Invoker (0,0,0 by default, but depends on who's calling this Actions) and stores the object instance in a local variable.

The Rotate action rotates the marker in self space -90 degrees in the X axis. So it moves upwards.

Then, the Transform action makes the marker's position move to the desired position in world space to the one chosen by the local variable.