How do you make a clip attached to another clip using code?
Lets say that you have the following 2 clips: clipParent and clipToBeChild
clipParent.timeline.frames[0].addClip(clipToBeChild);
whats this
clip attached = clipToBeChild
another clip = clipParent
okay , now what do I do
sorry I’m very dumb when it comes to JS
this makes no sense to me.
- How did you manage the distance of the child
- it displays an error for me
drag-drop5-14-2021_11-36-31.wick (26.6 KB)
This is the wick file when it hits another piece of the burger it connects.
Not sure what do you want to achieve with the burgers…?
this is what I want to do.
What you want requires more work in terms of logistics… You have to define what piece will be on top of which… and in which position… I can give you the basics…
Will the player find the burger pieces in certain order? (If so, you could just do a clip with multiple frames). Example:
burger_frame1 = bread only
burger_frame2 = bread and lettuce
burger_frame3 = bread, lettuce, and meat …
and so on…
Thanks, Jovanny! and yes, it simplified it a lot