Hello , i’v made a Catapult model for my endless runner game , and i want this Catapult to shoot in the bridge that i am runing on .
how i can do that ?!
i have made an animation for that catapult and i tried to instantiate after a timer passes then add a force to the ball but i couldnt get it to work ,
so wt i’v done is
if timer >= 5
attacking is true
ChangeAttack();
if attacking is true
play animation
yield waitforseconds(0.6)
instantiate(catapult ball , catapult pos , catapult roration)
then addforce vector3.up * 1
change attack function is to change status to false
but it didnt work any some ideas for a easy way to do that ?!