Skip to content

Add Sprite.AttachTo #10

Open
Open
@vchelaru

Description

@vchelaru

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
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions