Can some one give a simple step by step method of parenting

I don’t want an already finished project,
I just want to know what to do

Could you explain that a little bit more?

every time i try a search up how to parent an object i just get a finished project that doesn’t explain anything. I want to know how to call back code into other objects

What do you want to achieve? When you say parent an object… Are you referring to parent clip? Lets say that you have a motorcycle as parent clip… inside that parent you have three child clips: body, frontWheel, and backWheel

image

Then, if that is what you are referring, what would be your question again? Is your question related on how to put clips inside clips… or how to program them…?

Under this example, I can say…
motorcycle.frontWheel.rotation+=5; // then only the child frontWheel would rotate 5 degrees every tick.

1 Like

kinda both

So lets say that the motorcycle body is a rectangle… lets imagine that… just draw a rectangle and click on it and see at the right pane the option to “Make Clip”. When you click on that, your rectangle is converted into a programmatic object that belongs to the Wick class Clip.

image

Then, when you click again on it, you will see that you will be able to name it. Call it body for this example.

Then draw to circles, one for the frontWheel and the other for the backWheel. Repeat the step above to convert those into clips. For this example name them as frontWheel, and backWheel.

Those name are the names that you would use in your program to access them… Now, you want those three objects to be children of motorcycle. In order to do that, just select the 3 of them, and with the three selected convert them into a new clip. After that, name it as motorcycle.

Then you will be able to do things like…
motorcycle.frontWheel.rotation+=5;
motorcycle.backWheel.rotation+=5;
motorcycle.x += 5;

The last instruction will move all objects inside motorcycle 5 units to the right.

1 Like

@Jovanny spam bots

I… don’t know what you mean… are you telling jovanny to make a bunch of motorcycle bots?

1 Like

From context (or lack thereof), I can assume there were spam bots here Jovanny vacuumed.

2 Likes