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 / Wobble Wobble

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th May 2019 07:56
This is code from another language that i have translated. I have no idea what it's doing.
Seems to work well for rectangular shapes. Not so much for square shapes.




Attachments

Login to view attachments
Jerry McGuire
7
Years of Service
User Offline
Joined: 25th Mar 2017
Location:
Posted: 7th May 2019 20:30
Nice effect.

I've been thinking whether Tweens can replace Trigonometric Functions more efficiently. I think the SMOOTH tween methods can help construct an approximation. With a chain of two SMOOTH methods, one should get something close to a SINE function. You could then just have the code play the chain again if it has finished playing.
What know for a fact that computing trigonometric functions is very CPU-intensive for mobile devices.
I wonder if Tweens somehow compute the data just once and are therefore more efficient. But only AppGameKit knows.

Hey AppGameKit Team, could you clear this up for us?
AppGameKit 2018.10.10

iMac Book Pro, MacOS 10.14, Xcode 10.1;
iPhone 6, iOS 12; iPad (3rd gen), iOS 9.35; iPad Pro 12'9 (2nd gen), iOS 12.

Dell Precision T7400, Windows 7 Professional 64bit, Visual Studio Community 2017;
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th May 2019 22:53
The easing is much better in real time. The gif doesn't do it justice i think.
It might be difficult to use tweens because it needs to Rotate, then FixObjectPivot, then scale
janbo
16
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 8th May 2019 17:08 Edited at: 8th May 2019 17:09
Quote: "I wonder if Tweens somehow compute the data just once and are therefore more efficient. But only AppGameKit knows."

The code for AppGameKit Classic is on Github
Here are the interpolation calculations for tweening:
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 8th May 2019 21:37
janbo, i have file, so maybe you'd be interested in redoing it?
Forgive my English.
https://www.instagram.com/qugurun/

Attachments

Login to view attachments
janbo
16
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 8th May 2019 21:43
@Qugurun
I just posted the source code of AGKC's tweening commands. Not sure what you want me to do as we already have neat Tweening commands
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 8th May 2019 21:50
@janbo
Only 9 options are described in the documentation. The file that I gave is - 41.
https://www.instagram.com/qugurun/
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 9th May 2019 13:44
great effect Blink
fubarpk
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk

Login to post a reply

Server time is: 2024-11-22 21:32:13
Your offset time is: 2024-11-22 21:32:13