New extension: Sticky object (public beta 1)
[size:11pt]Sticky Object[/size]
This extension can attach objects to each other in child/parent relationships, even when the parent object rotates or changes angle, the child object can follow.
You can fully set different options for the objects you attach to each other.
Please try it out and tell me what you think :)
Download:
StickyObject.zip [60.7 kb]
Example file in the zip, but can also be downloaded here:
StickyObject.mfa [201 kb]
Thanks to Tom Boyce (Isaacboy) for the really nice icon!
Re: New extension: Sticky object (public beta 1)
Nice, Andos! I'm always amazed by every extension you release.
Re: New extension: Sticky object (public beta 1)
Katamari Damacy.
164 object limit?
Is there a way to disable the child objects from turning in the same direction as the parent?
Edit: I keep getting a random number of objects that will stick and then no more will :x
161, 160, 164, 146, .. but it's weird because once it got up to 300 objects sticking ¯\(º_o)/¯ I guess it all depends on how the objects stick in the first place, if all of the area taken then nothing else will stick?
Re: New extension: Sticky object (public beta 1)
Cool!
But there's one bug with the example.
If you click on the stickies while they are above their parent, they fall a bit and stop without sticking back on the parent.
Also, could there be an option to scale the children with the parent? That would have to scale to position offset as well.
Re: New extension: Sticky object (public beta 1)
hi Andos
I'm now using vista and it crash when playing. I went to the event editor and goes to line 4, I deleted (flexble attach object "active 2" ro parent: Active) and then It ran Ok. I could press to "Active 2" and it fall down and hit the "Actives"
(flexble attach object "active 2" ro parent: Active) doesn't run on vista? Now you know it.
Re: New extension: Sticky object (public beta 1)
This is rather cool and could be used to create some interesting games and effects.
I noticed something odd, and I would like to understand how it works. In line four, I know you use a collision to attach the children to the parents and note that you get odd results if you don't do one at a time ... but:
If you remove the collision condition from line four, most of the objects, other than seven, act as if they are attached to the main actives. Why don't those remaining objects behave the same way? I mean, this looks like a useful potential in itself to have objects connect without a collision, if you get what I mean.
EDIT: Well, I see the math now. After x number of objects have connected to the parents, there are no more to connect to ;)
Re: New extension: Sticky object (public beta 1)
This would be great for a character rigging system.
Re: New extension: Sticky object (public beta 1)
Incredible extension ! I've already done that in an application without extensions but I think I'll convert all my long code with your extension which is fastest.
What is the difference between flexible attach and static attach ?
Maybe you should rename "flexible" by "relative" or the inverse because actually action result and action menu don't have the same name.
This extension will be probably my favorite. :) Thanks a lot Andos.
Re: New extension: Sticky object (public beta 1)
what about being able to copy the parent's scale too?
Re: New extension: Sticky object (public beta 1)
A new condition like "Is OBJECTX is sticked to OBJECTY" could be very cool too (in a collision event for example).