• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Discussion (Suggestion) WorldTransform2D and LocalTransform2D

xDGameStudios

GameMaker Staff
GameMaker Dev.
is it possible to add this features builtin the GML and GMS2 engine?
by this I mean:

instance A (local_transform: x = 1, y = 1; world_transform: x = 1, y = 1);
instance B (local_transform: x = 2, y = 2; world_transform: x = 2, y = 2);

transform_add_parent(A, B);

instance A(world_transform: world_transform: x = 3, y = 3);

and making then update... so this way moving "B" will automatically move "A"

but adding more options for "xscale" and even "anchor" point;
anchor point sets the position relative the parents width

for example if A anchor point is (x = 0.5, y = 0.5)
and B size is (width = 1, height = 1);

then: instance A (world_transform: x = 3.5, y = 3.5);

Hope I've explained myself well :) is this planned somewhere in the future?!
 

rwkay

GameMaker Staff
GameMaker Dev.
We have no plans to implement anything like this in core GM, but you can easily implement this for your own game.

Russell
 
Top