Ok, you know how you can lift stuff and throw them?
I was kinda fleshing out an idea on how to do it, but I predict it will be prone to erratic animation and glitchiness.
I was thinking of having collision detectors around the character and when they overlap the rock, destroy rock, and make another active object which just looks like the pot, and have it position itself ontop of the link animation of lifting something. Then, if player presses the button again, restore animation, and use internal flags to determine how long the pot should fly before it brakes.
Sounds a bit weird though. Anyone have a better idea of doing it.
well if you use four detectors for collisions you can also use them for picking things up too.
Um how about making a simple flag that tells it whether to collide with link and also if it's picked up?
try something like this, not actual events but just pseudo code or whatever you call it
Pot's Flag 0 = off (collisions on)
Pot's Flag 0 = off (don't follow link)
pressed fire 1 + pot is overlapping a detector + post's flag = off (set post's flag 0 on)
Pot's Flag 1 = off (collisions off)
Pot's Flag 1 = off (follow link)
Pot's Flag 1 = off (set direction to link's direction)
pressed fire 1 + pot is overlapping link + pot's flag = on (throw)
and throwing can be quite easy to do, if you're using The games factory you wont have many alterable values, so just use 1 for the length that the pot will be in the air for.
when it's thrown set pot's value A to 50. then make another event that says when value a is above 0 subtract 1.
then make another that says when pot's value A = 1 destroy.
and for the direction of the pot? well it's already facing the same way as link, so make 4 more events
if pot's direction is up and alterable value is greater than 0 set it's Y value relative to it's own Y value -2 (and do the other 4 like that)
that should work relatively well.
i just realized whilst making an example that the detectors could grab two pots at once unless you make them small enough, so it might not a good idea use the collision detectors