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 / TweenSmooth1() Example

Author
Message
Divided
FPSC Reloaded TGC Backer
11
Years of Service
User Offline
Joined: 31st Oct 2013
Location:
Posted: 16th Jul 2019 17:39
Hello,

There is an annoying lack of examples in the AppGameKit documentation currently.

Can someone please provide an example for TweenSmooth1()?
As in how does this function get used in a tween example.

Just like a simple sprite from say pos(10, 10) to pos(40, 10) if the function works something like that.

I'm assuming this function acts as a definition on how to tween a sprite.

Regards,
Blake
Real programmers don't comment their code, because if it was hard to write it must be hard to read!

- PixHil Entertainment
Download Pixel Smasher on the App Store today!
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 16th Jul 2019 23:34
TweenSmooth1() is not a standalone function, in fact i think it just returns a value
It is used to describe the type of motion in the tween functions
ie:
SetTweenObjectX( tweenID, beginX, endX, TweenSmooth1())
Divided
FPSC Reloaded TGC Backer
11
Years of Service
User Offline
Joined: 31st Oct 2013
Location:
Posted: 17th Jul 2019 07:22
Thanks blink0k!

I figured as much, it does describe it as a helper function in the documentation.

However your example is just what I needed. Thanks!
Real programmers don't comment their code, because if it was hard to write it must be hard to read!

- PixHil Entertainment
Download Pixel Smasher on the App Store today!
Qugurun
Valued Member
9
Years of Service
User Offline
Joined: 8th Dec 2014
Playing: AppGameKit
Posted: 17th Jul 2019 11:03
https://www.instagram.com/qugurun/
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 17th Jul 2019 22:52
That is some very nice code Qugurun
thanks

Login to post a reply

Server time is: 2024-11-22 15:58:32
Your offset time is: 2024-11-22 15:58:32