In Unity C# we can use Vector 2 and 3 to set varibles that contain more than 1 value. A great example is if you want one variable to hold an RGBA color value. You would set the Vector4 to:
- Code: Select all
myColorVariable = New Vector4(000,000,fff,fff);
This is extremely helpful when drawing boxes or setting something's position... (just use a Vector2(X,Y) for the X and Y value.)
What I am wondering is if we have something like this in Construct2?
How would I set a single varialbe to an objects X and Y position?
I can see we have something to set and return RGB values. This is why I am asking.
Thanks in advance for any help.