To change the "Cannon Physics" Template.
gawakamy
Member Posts: 109
Hi, GS dudes.
I am gonna use the "Cannon Physics" Template. What I am trying to fix is the Power bar. The bar gauge only go to the top and never come back before I release button. I would like to control it to go up and down over and over before I shoot the ball.
Second, I would like to change to not fire rapidly. The cannon fire must wait till the action of the ball is stopped.
How do I fix them? Please help !!!
I am gonna use the "Cannon Physics" Template. What I am trying to fix is the Power bar. The bar gauge only go to the top and never come back before I release button. I would like to control it to go up and down over and over before I shoot the ball.
Second, I would like to change to not fire rapidly. The cannon fire must wait till the action of the ball is stopped.
How do I fix them? Please help !!!
Best Answer
-
Rob2 Posts: 2,402For the up and over replace
min(2, self.Time - self.StartTime )
with
prec(abs(sin(( self.Time - self.StartTime )*100)*2),2)
in the first constrain in the cannon actor
Answers
What should I do exactly, please?