Programitically attach one sprite to another

I'd like to adjust the relative positions of two sprites using goto x y blocks and then attach one to the other to create a nested sprite

Is there a way to tell them to join together rather than the normal drag and dropping method?

Make b a clone of a (set parent to a) and use the inherit block

Sure! Here's how to attach one sprite to another:


I keep forgetting that the set block isn't just for variables :slight_smile:

Ta :slight_smile:

No. The relation __ is a part of __ is very different from __ is one of __. Cloning is not appropriate for the former. And anyway he doesn't want the rotation centers to coincide; he just wants a fixed offset between them.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.