Ask here your questions to get help using GDevelop.
By MattLB
#63937 You just need to set the position of the second object to be constantly updated to match the first object using the action: All objects>Position>Position of an object.

If we call the objects ball1 and ball2 then something like

ball2.X() = ball1.X()-5
ball2.Y() = ball1.Y()

would put ball2 level with, but slightly behind ball1.
By bagas aditya
#63961
MattLB wrote:You just need to set the position of the second object to be constantly updated to match the first object using the action: All objects>Position>Position of an object.

If we call the objects ball1 and ball2 then something like

ball2.X() = ball1.X()-5
ball2.Y() = ball1.Y()

would put ball2 level with, but slightly behind ball1.


thanks, it helps me ! :)