JPTweener

JPTweener

Créez des transitions complexes
Version : 3.0
Prix : $30
Etat : Épuisé

Liste des modifications

v3.0

  • Now compatible with ShiVa 2.0.
  • Plugin API compiled for Mac and Linux in addition to Windows : it will provide API completion in the Script module in ShiVa Editor for each of these operating systems.
  • Now uses a user token instead of an email to activate

v2.2

  • Optimized for ShiVa 1.9.2

v2.1

  • Fixed a bug with JPTweener.exists ( sEase ), was always returning false for custom eases.

v2.0

New functions:

  • bYes = JPTweener.exists ( sEase )
  • nCount = JPTweener.getEaseCount ( )
  • sEase = JPTweener.getEaseAt ( nIndex )
  • sEase = JPTweener.getRandomEase ( )

New curves:

  • nCoef = JPTweener.easeShake ( nCoef, nOptFrequence, sOptClampEase, bOptClampReversed, sOptFrequenceEase )
  • nCoef = JPTweener.easePulse ( nCoef, nOptHold, nOptRepeats, sOptPulseCurve1, sOptPulseCurve2 )
  • nCoef = JPTweener.easeZero ( )
  • nCoef = JPTweener.easeOne ( )

Create your custom curves:

  • JPTweener.createCustomEaseFromConstant ( sName, nValue )
  • JPTweener.createCustomEaseFromFunction ( sName, fFunction )
  • JPTweener.createCustomEaseFromPolynomial ( sName, nOptPolynomialCoef1, nOptPolynomialCoef2, nOptPolynomialCoef3, nOptPolynomialCoef4, nOptPolynomialCoef5 )
  • sType, vValue0, vValue1, vValue2, vValue3, vValue4 = JPTweener.getCustomEase ( sName ) The curves you've created are directly usable by using JPTweener.yourEaseName ( nCoef )

v1.3

  • Internal modifications to prevent eventual conflicts between packs.

v1.2

  • Fixed a random issue blocking the activation of the pack

v1.1

  • Error messages now are easier to understand.

API

--JPTweener API JPTweener.activate ( sUserToken, sActivationKey ) --Browsing eases nCount = JPTweener.getEaseCount ( ) sEase = JPTweener.getEaseAt ( nIndex ) bYes = JPTweener.exists ( sEase ) --Random ease sEase = JPTweener.getRandomEase ( ) --create custom eases. Call them using JPTweener.yourEaseName ( nCoef ) or JPTweener["yourEaseName"] ( nCoef ) JPTweener.createCustomEaseFromConstant ( sName, nValue ) JPTweener.createCustomEaseFromFunction ( sName, fFunction ) JPTweener.createCustomEaseFromPolynomial ( sName, nOptPolynomialCoef1, nOptPolynomialCoef2, nOptPolynomialCoef3, nOptPolynomialCoef4, nOptPolynomialCoef5 ) sType, vValue0, vValue1, vValue2, vValue3, vValue4 = JPTweener.getCustomEase ( sName ) --Custom eases JPTweener.yourCustomEaseName ( nCoef ) --Special eases (0 to 0) nCoef = JPTweener.easePulse ( nCoef, nOptHold, nOptRepeats, sOptPulseCurve1, sOptPulseCurve2 ) nCoef = JPTweener.easeShake ( nCoef, nOptFrequence, sOptClampEase, bOptClampReversed, sOptFrequenceEase ) --Constant eases nCoef = JPTweener.easeZero ( ) nCoef = JPTweener.easeOne ( ) --Classic eases (0 to 1) nCoef = JPTweener.easeNone ( nCoef ) nCoef = JPTweener.easeInBack ( nCoef, nOvershoot ) nCoef = JPTweener.easeInBounce ( nCoef ) nCoef = JPTweener.easeInCirc ( nCoef ) nCoef = JPTweener.easeInCubic ( nCoef ) nCoef = JPTweener.easeInElastic ( nCoef, nAmplitude, nPeriod ) nCoef = JPTweener.easeInExpo ( nCoef ) nCoef = JPTweener.easeInQuad ( nCoef ) nCoef = JPTweener.easeInQuart ( nCoef ) nCoef = JPTweener.easeInQuint ( nCoef ) nCoef = JPTweener.easeInSine ( nCoef ) nCoef = JPTweener.easeInOutBack ( nCoef, nOvershoot ) nCoef = JPTweener.easeInOutBounce ( nCoef ) nCoef = JPTweener.easeInOutCirc ( nCoef ) nCoef = JPTweener.easeInOutCubic ( nCoef ) nCoef = JPTweener.easeInOutElastic ( nCoef, nAmplitude, nPeriod ) nCoef = JPTweener.easeInOutExpo ( nCoef ) nCoef = JPTweener.easeInOutQuad ( nCoef ) nCoef = JPTweener.easeInOutQuart ( nCoef ) nCoef = JPTweener.easeInOutQuint ( nCoef ) nCoef = JPTweener.easeInOutSine ( nCoef ) nCoef = JPTweener.easeOutBack ( nCoef, nOvershoot ) nCoef = JPTweener.easeOutBounce ( nCoef ) nCoef = JPTweener.easeOutCirc ( nCoef ) nCoef = JPTweener.easeOutCubic ( nCoef ) nCoef = JPTweener.easeOutElastic ( nCoef, nAmplitude, nPeriod ) nCoef = JPTweener.easeOutExpo ( nCoef ) nCoef = JPTweener.easeOutQuad ( nCoef ) nCoef = JPTweener.easeOutQuart ( nCoef ) nCoef = JPTweener.easeOutQuint ( nCoef ) nCoef = JPTweener.easeOutSine ( nCoef ) nCoef = JPTweener.easeOutInBack ( nCoef, nOvershoot ) nCoef = JPTweener.easeOutInBounce ( nCoef ) nCoef = JPTweener.easeOutInCirc ( nCoef ) nCoef = JPTweener.easeOutInCubic ( nCoef ) nCoef = JPTweener.easeOutInElastic ( nCoef, nAmplitude, nPeriod ) nCoef = JPTweener.easeOutInExpo ( nCoef ) nCoef = JPTweener.easeOutInQuad ( nCoef ) nCoef = JPTweener.easeOutInQuart ( nCoef ) nCoef = JPTweener.easeOutInQuint ( nCoef ) nCoef = JPTweener.easeOutInSine ( nCoef )

Description

JPTweener est le parfait compagnon pour tous ceux qui désirent ajouter un peu de fluidité et de transitions dans leurs jeux. Grâce à sa multitude de transitions, vous serez en mesure d'ajouter des animations riches et variées à vos jeux.

Son fonctionnement est très simple, donnez lui par exemple un coefficient de temps et il vous donnera la valeur correspondant en fonction de la transition que vous avez choisie. Effets de rebonds, élastiques, courbes... la seule limite quant à son implémentation sera votre imagination! Essayez la démo ci-dessous pour avoir un exemple de ce qui peut être réalisé grâce à ce pack.

Vous pouvez retrouver les courbes de toutes les transitions de manière animée sur ce site.

JPTweener contient également des courbes spéciales, comme le pulse ou les shakes et vous permet de créer vos propres courbes à l'aide de nombres polynomiaux. Ne soyez pas effrayés c'est très simple grâce au générateur de courbes.

Vous pouvez aussi créer de nouvelles courbes à partir de constantes ou à l'aide de vos propres fonctions, JPTweener vous permet de faire ce que vous voulez!

Notez que ce pack peut être combiné avec JPAnimation. En effet, grâce à JPAnimation, vous n'aurez plus à vous préoccuper des coefficients, JPAnimation le fait pour vous. Rendez-vous dans la section correspondante pour plus de détails.


LINKS