cos/sin function to animate sizes of an actor

RobiwanRobiwan Member Posts: 9
edited November -1 in Working with GS (Mac)
Having a great time trying to learn gamesalad and just started on my first game. And I want an actor to constantly change size up and down, and thought the sin or cos function would be great for that purpose. But I can't get it to work :( can anyone help me out?

Comments

  • RobiwanRobiwan Member Posts: 9
    Yes. Got it working! Constrain Attribute Self.Size.Width 10*sin( self.Time *40)+60 <-- for width(same for hight)
  • LumpAppsLumpApps Member Posts: 2,881
    Nice, sin and cos functions are awesome and undervalued!
  • RobiwanRobiwan Member Posts: 9
    Yeah, I´m pretty new at this, but I like the smooth change in speed, instead of just having it set the size grow/shrink every second would have been a hard transition.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Just want to say welcome to gamesalad! Can already tell you'll make an awesome addition to the community here.

    cheers
  • LumpAppsLumpApps Member Posts: 2,881
    Through Game Salad I finally understand why I had to learn math in the first place ;)

    And welcome indeed!
Sign In or Register to comment.