To change the "Cannon Physics" Template.

gawakamygawakamy Member Posts: 109
edited April 2012 in Working with GS (Mac)
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 !!!

Best Answer

  • Rob2Rob2 Posts: 2,402
    Accepted Answer
    For 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

  • gawakamygawakamy Member Posts: 109
    edited April 2012
    @Rob2 I tried to attach prec(abs(sin(( self.Time - self.StartTime )*100)*2),2) after min(2, self.Time - self.StartTime ), but it didn't work. And then I tried to use only prec(abs(sin(( self.Time - self.StartTime )*100)*2),2), but it also didn't work.
    What should I do exactly, please?
  • gawakamygawakamy Member Posts: 109
    @Rod2 Hey, I figured it out. There were some mistakes. I really appreciate you. :D
  • MaDeex44MaDeex44 Member Posts: 15
    Can you explain what was wrong @gawakamy‌
Sign In or Register to comment.