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.

Author
Message
TrezSoft
AGK Tool Maker
12
Years of Service
User Offline
Joined: 8th Nov 2012
Location: UK
Posted: 4th Feb 2013 21:16 Edited at: 4th Feb 2013 21:29
I needed to convert an HTML 5 Game to AppGameKit T1 and in the process I needed to convert my existing tween library. Originally the intention was only to convert the required tweens but it ended up as a complete library.

With the library and examples its approx 10MB in size for now you can get an early beta copy from here:

Download Link

(A workspace is included which will load the library and the examples.)

Features:

Unlimited Tweens ( well depends on performance !)
Currently the library supports 29 easings
Tween Looping ( None, Revert, Reverse)
Delay Start
Up to 10 properties per tween
Up to 10 chains per tween
Tween Control (Start,Stop,Pause, Resume) with simple queue
Tween Complete Trigger
13 Sprite properties supported
9 Text properties supported
8 Character properties supported
1 Music Property supported

Adding in the 3D object and Camera support in the next week.

The main TweenAGK project also includes a simple help file with details about the custom types , easings, properties etc.

If you have time feedback would be appreciated (good or bad)

Stuart.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 4th Feb 2013 21:55
What is a 'Tween'? (My only frame of reference is using it to indicate someone who is between teenager and adult, or maybe it was pre-teen and teen.)

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
TrezSoft
AGK Tool Maker
12
Years of Service
User Offline
Joined: 8th Nov 2012
Location: UK
Posted: 4th Feb 2013 22:01
ha Its an animation term short for in between.

Basically you can change properties over a set time period.

So the library will allow you to change the position, size , color etc over set time periods and also allow you to apply easing animations to the start , end or both (for example bounce in). You can link tweens together (chain them).
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 4th Feb 2013 22:09
Sounds fantastic on paper, haven't tried it myself yet as i work in T2.

Maybe these style of commands should be incorporated in AppGameKit in the future.
TrezSoft
AGK Tool Maker
12
Years of Service
User Offline
Joined: 8th Nov 2012
Location: UK
Posted: 4th Feb 2013 22:26
I will probably create a T2 version at some stage (when i have finished learning it). It should be a lot easier to create in T2 and a lot less code.
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 5th Feb 2013 11:54
Very nifty! well done and a star for sharing such excellence!

I myself understand tweening a lot as I used to use it a lot in previous flash animations...

Will hopefully give this a go when I get around to learning more about AppGameKit in the coming days...

TrezSoft - May I add this to my new TGC Forum Repository? I was meant to announce it yesterday but boy o boy have I been busy lately...

TrezSoft
AGK Tool Maker
12
Years of Service
User Offline
Joined: 8th Nov 2012
Location: UK
Posted: 5th Feb 2013 12:05
MrValentine You are most welcome to add the libarry to the TGC Forum Repository .

3D object and camera support should be finished tomorrow. Then I will be looking to add in Interpolation to allow path arrays , Bezier etc.
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 5th Feb 2013 12:25
TrezSoft - Done and Thank You, the file can be found here, If you have the time, please take a look to see if the description is ok.

TrezSoft
AGK Tool Maker
12
Years of Service
User Offline
Joined: 8th Nov 2012
Location: UK
Posted: 5th Feb 2013 23:37
New Update beta 1.1

MrValentine: Looks great I will sort about a better description later in the week. For now you may want to get the latest version and update the repo.

Includes 1 additional 3D Tween Example

Now supports the following additional properties:

// ------------------------------------------------
// Music Properties - Property Type 3
// ------------------------------------------------
//
// 0 SetMusicFileVolume(,)
// 1 SetMusicSystemVolume() Added: beta 1.1
// 2 SetSoundSystemVolume() Added: beta 1.1


// ------------------------------------------------
// 3D Properties - Property Type 4
// Added: beta 1.1
// ------------------------------------------------
//
// 0 MoveObjectLocalX(,)
// 1 ObjectLocalY(,)
// 2 MoveObjectLocalZ(,)
// 3 RotateObjectGlobalX(,)
// 4 RotateObjectGlobalY(,)
// 5 RotateObjectGlobalZ(,)
// 6 RotateObjectLocalX(,)
// 7 RotateObjectLocalY(,)
// 8 RotateObjectLocalZ(,)
// 9 SetObjectPosition(,,,) X
// 10 SetObjectPosition(,,,) Y
// 11 SetObjectPosition(,,,) Z
// 12 SetObjectRotation(,,,) X
// 13 SetObjectRotation(,,,) Y
// 14 SetObjectRotation(,,,) Z
// 15 SetObjectScale(,,,) XYZ


// ------------------------------------------------
// 3D Camera Properties - Property Type 5
// Added: beta 1.1
// ------------------------------------------------
//
// 0 MoveCameraLocalX(,)
// 1 MoveCameraLocalY(,)
// 2 MoveCameraLocalZ(,)
// 3 RotateCameraGlobalX(,)
// 4 RotateCameraGlobalY(,)
// 5 RotateCameraGlobalZ(,)
// 6 RotateCameraLocalX(,)
// 7 RotateCameraLocalY(,)
// 8 RotateCameraLocalZ(,)
// 9 SetCameraFOV(,)
// 10 SetCameraPosition(,,,) X
// 11 SetCameraPosition(,,,) Y
// 12 SetCameraPosition(,,,) Z
// 13 SetCameraRotation(,,,) X
// 14 SetCameraRotation(,,,) Y
// 15 SetCameraRotation(,,,) Z
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 6th Feb 2013 00:29 Edited at: 6th Feb 2013 16:51
I assumed the update was placed in the first post, it is 11.2MB now btw I renamed the files TweenAGK_1_0.zip and TweenAGK_1_1.zip

I suggest you take the name naming convention for your own projects sake

EDIT

Added to the Repo

gbison
13
Years of Service
User Offline
Joined: 15th Dec 2010
Location: USA
Posted: 7th Feb 2013 16:29
Tween is being used in many platforms, Unity, Torque and many more. It was soley responsible for moving the menus and dialogs in our latest production.

It was a concept originally derived from flash, but is being used in various languages. It is short for Inbetweening (tween). It is a method of animating sprites through code via mathematical equations.

It works extremely well and is able to produce very cool effects that works off both a linear and ease based system. For example, if you want to have a sprite ease in to a position or ease out of a position. Maybe you want it to move to a location, over shoot at the end and wrap back around, move in quickly and bounce at the end or evening move via a running start. Tweening allows you to do all this and is typically available for various engines on the market.

It would be a very nice feature for AGK.

"The greatest trick the devil ever pulled, was to convince the world he didn't exist."
nz0
AGK Developer
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 4th Apr 2013 01:39
This looks interesting.
Any new developments?

TrezSoft
AGK Tool Maker
12
Years of Service
User Offline
Joined: 8th Nov 2012
Location: UK
Posted: 4th Apr 2013 14:31
All the base tweeining is in place which you can get from the links in this post. I am just finishing off the additional path tweening which should be ready in a few weeks. I created the library for a game conversion I was working on. I cant publish anything about the game but if you want to see the results:

Both versions created by me.

Original Javascript version of the game: http://www.hockeycanada.ca/multimedia/puckster/

The android version created using AppGameKit T1:
https://play.google.com/store/apps/details?id=com.mediumrare.PuckstersStarChallenge&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5tZWRpdW1yYXJlLlB1Y2tzdGVyc1N0YXJDaGFsbGVuZ2UiXQ..
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 4th Apr 2013 15:58
Cool, I just got second place


this.mess = abs(sin(times#))
TrezSoft
AGK Tool Maker
12
Years of Service
User Offline
Joined: 8th Nov 2012
Location: UK
Posted: 4th Apr 2013 16:35 Edited at: 4th Apr 2013 18:00
I think the target age group is 6-12

On a more serious note I attempted to use appMobi and other javascript –to -native conversion services all failed even with the help of the companies involved. AppGameKit just worked no memory or speed issues no real sound issues I suppose the only issue was me learning the function set in such a short period of time. It’s a shame that a lot of developers look down on BASIC especially a version that has been stuffed full of functionality targeted for game development. Personally I will switch between T1 and T2 once I have finished refreshing my c++ skills simply because I develop in c and c# 99% of the time. But anyone thinking they don’t want to use BASIC just because its BASIC should give AppGameKit T1 a try first, you get a lot of game for a few lines of code.
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 4th Apr 2013 17:53
Quote: "I think the target age group is 6-12"

About my mental age then

Quote: "A lot of game for a few lines of code."

Would make a good tagline...


this.mess = abs(sin(times#))
MobileCreator
13
Years of Service
User Offline
Joined: 1st Jun 2011
Location: Ottawa - Canada
Posted: 8th Apr 2013 14:59
TrezSoft, you're my hero! This library is all I needed to use AppGameKit again.

Thanks

----------
Paulo
http://www.mobilecreators.com
haliop
User Banned
Posted: 12th Apr 2013 11:05
i still dont understand how can i use this library? can someone give me an example of what i can achive with this awesome lib ?

TrezSoft
AGK Tool Maker
12
Years of Service
User Offline
Joined: 8th Nov 2012
Location: UK
Posted: 12th Apr 2013 11:27
What would you like to use it for? I use it to animate the main menus and in game slide out menus but it can be used to animate most object properties over a set time period. The easing’s allow you to specify how the animation will start and end (ease in, ease out) so for example you could drop a menu from the top of the screen and bounce it when it hits the bottom, make a button flash to get the users attention, create a moving platform that repeats a given path, slide an in game menu in fast and slow it down when fully visible, fade from menu to menu etc etc. The examples in the library simply show how the library works because it’s really down to what effect you would like to create. If you have some idea of what you would like to do I will put together a sample.
haliop
User Banned
Posted: 12th Apr 2013 11:36
cool ty .. i will sure to check the lib.. no need for samples i just didnot know what tween means .. ty .
already i have alot of ideas for it. ty.

Login to post a reply

Server time is: 2024-11-24 11:42:03
Your offset time is: 2024-11-24 11:42:03