My hook not working, any opinions?
I am now making a hook function.
My hook can carry the actor from start point to end point. When it reach end point it release the actor than back to start point.
I am using the function which is when my actor collides with the hook ,it constrain x,y of the hook so that it follows the hook move to the end.
Problem comes out when they reach the end point.
I have no idea how to cancel the constrain attributes.
I tried destroy the hook and spawn one new at the end point, my actor just fly away.
Anyone can help me please?Thank you!
My hook can carry the actor from start point to end point. When it reach end point it release the actor than back to start point.
I am using the function which is when my actor collides with the hook ,it constrain x,y of the hook so that it follows the hook move to the end.
Problem comes out when they reach the end point.
I have no idea how to cancel the constrain attributes.
I tried destroy the hook and spawn one new at the end point, my actor just fly away.
Anyone can help me please?Thank you!
Comments
in the actor you want to be on the hoook, Have your rule when the actor collides with the hook AND hook destination =0 constrain attribute x and y to x and y of the hook. Then have a rule in the hook(wherever it is onscreen, ill use a x position of 400 for a example as the ending destination)
when attribute self position x =400 change attribute hookdestination to true.
that will cancel out the constraint for you
cheers
I have tried this too but my actor is still fly away, not work like normally dropping down when reach the end.
Is it a bug or something?
THanks, you are amazing!
Thank you!