Hi guys , I’m a beginner in C# and I can’t figure out how to attach two game objects with each other using animations, just like a zombie grabbing the player with animation and we need to press buttons to break free.
How is this possible? Can you please explain this with a simple script so I can understand how that basically works. Maybe you could explain by giving an example of two cubes , one cube grabbing other with animation.
Any help will be awesome!
I would create 2 grab point game objects in front of the players top of the player game objects in the hierarcy (back of the player as extra optional but not necessary) When enemy or zombie collides with grab trigger,bring those two grabpoints together with a script only using x,y vector so the will face each other meeting in a fixed position.This fixed position will always be the coordinate where both animations dont leak.Player plays the omg animation while zombie plays the grab animation.Rest is for example
count ihow fast the mainplayer is hitting mouse 0 button.If condition meets then play throw zombie animation and play zombie thrown animation.In the end zombie returns to its attack loop and you are the controller to escape.
Hi guys i know this is an old topic but how wpuld i create a grab point?