Open
Description
The following code is how it's done in C#:
Sprite firstSprite = new Sprite();
Sprite secondSprite = new Sprite();
secondSprite.X = 4;
bool keepInSameSpotAfterAttachment = true;
firstSprite.AttachTo(secondSprite, keepInSameSpotAfterAttachment);
In the code above, the two Sprites would be in the same positions before and after attachments, but moving the firstSprite will change the position of the second Sprite.
secondSprite's RelativeX is 0 before the attachment, it becomes 4 after.
Metadata
Metadata
Assignees
Labels
No labels