Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Logo Rotate

Author
Message
Radix
12
Years of Service
User Offline
Joined: 12th Nov 2012
Location:
Posted: 14th Nov 2012 20:23
Hello!
Im very new in basic language.Ive created an "main menu" screen.One background picture as sprite and a logo as single sprite.Now i want that the logo sprite is rotating a little bit left,a little bit right,just for funny effect.Heres a screen what im looking for.



I know its about sprite angle,but can u give me an code example how to set it up. It will be very nice. Greetings from germany.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 14th Nov 2012 20:29
You could apply the formulas found here to get different effects. The Berp is a nice one to use. You apply them over a time frame by supplying the current point in time (0.0 - 1.0)

Radix
12
Years of Service
User Offline
Joined: 12th Nov 2012
Location:
Posted: 14th Nov 2012 23:20
Can anyone of you give me a code example?

Thanks
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Nov 2012 11:37 Edited at: 15th Nov 2012 11:38
Here's one for starters:



this.mess = abs(sin(times#))

Login to post a reply

Server time is: 2024-11-24 01:29:48
Your offset time is: 2024-11-24 01:29:48