Hover effect using expression
LyboTech
Member Posts: 135
I was wondering if there was possible to make a 'hover' effect using an expression rather than animation ?
I want a sort of bobbing up and down effect on my character when idle and while moving.
Any help is appreciated
Answers
Random bobbing up and down:
Constrain:
X to 12 *cos( self.Time *140)+9 *sin( self.Time *174) + X origin
Y to 13 *sin( self.Time *122)+7 *cos( self.Time *189) + Y origin
R to 2 *cos( self.Time *75)+2 *sin( self.Time *167)
Adjust to taste.
Smooth floaty / bobbing up and down:
Constrain:
X to 12 *cos( self.Time *140) + X origin
Y to 11 *sin ( self.Time *122) + Y origin
R to 2 *cos ( self.Time *75)
Great tips! I assume the X and Y origins are the typo'd the wrong way round there though?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Whoops ! Yep, they are the wrong way 'round, post now corrected, cheers !
You could also acomplish this using move behaviors.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS