A selection of easing functions
by DocRobs
![KNUTIL Scene Manager amp Frequently Used Functions Library](https://games.phoneky.com/pics/knutilscenemanageramp1x.png)
![Speedrun Playback Record Tool vA](https://games.phoneky.com/pics/speedrunplaybackrecordtoolva1x.png)
![Power Ball](https://games.phoneky.com/pics/power-ball1x.jpg)
![Simple Scene Manager](https://games.phoneky.com/pics/simplescenemanager1x.png)
![Aris Solitaire](https://games.phoneky.com/pics/aris-solitaire1x.jpg)
![Road Network Designer Traffic Simulator](https://games.phoneky.com/pics/roadnetworkdesignertrafficsimulator1x.jpg)
![China Miner](https://games.phoneky.com/pics/chinaminer1x.png)
![Lander on Planet Cheese](https://games.phoneky.com/pics/landeronplanetcheese1x.png)
![Sprite Animator](https://games.phoneky.com/pics/spriteanimator1x.png)
![Lemon Industries](https://games.phoneky.com/pics/lemonindustries1x.png)
![Solar Assaulted](https://games.phoneky.com/pics/solarassaulted1x.png)
![Terra-Edit - A World Editor for Terra](https://games.phoneky.com/pics/terraeditaworldeditorforterra1x.png)
![Princess Fidget Spinners](https://games.phoneky.com/pics/princess-fidget-spinners1x.jpg)
![Nanoman](https://games.phoneky.com/pics/nanoman1x.png)
![DeFacto](https://games.phoneky.com/pics/defacto1x.png)
![TOOT by Funkenstoumlrt](https://games.phoneky.com/pics/tootbyfunkenstoumlrt1x.png)
![AASteroids](https://games.phoneky.com/pics/aasteroids78701x.png)
![Immediate mode GUI](https://games.phoneky.com/pics/immediatemodegui1x.png)
![Just Push the Button](https://games.phoneky.com/pics/justpushthebutton1x.png)
![i_editor 2.0 manual(englishfrench)](https://games.phoneky.com/pics/ieditor20manualenglishfrench1x.png)
![Tunnel Effect music](https://games.phoneky.com/pics/tunneleffectmusic1x.png)
![Tween Engine](https://games.phoneky.com/pics/tweenengine1x.png)
![Pico Cyberbank](https://games.phoneky.com/pics/picocyberbank1x.png)
![Particle Effects](https://games.phoneky.com/pics/particleeffects1x.png)
![3-layer Parallax Code for Side Scrolling Games](https://games.phoneky.com/pics/3layerparallaxcodeforsidescrollinggames1x.png)
![Simplex Noise Example](https://games.phoneky.com/pics/simplexnoiseexample1x.png)
![Mahjong 3D Candy](https://games.phoneky.com/pics/mahjong-3d-candy1x.jpg)
![They Started It](https://games.phoneky.com/pics/theystartedit1x.png)
![Isometric Spellcrafter](https://games.phoneky.com/pics/isometricspellcrafter1x.png)
![Pico Tanks](https://games.phoneky.com/pics/picotanks1x.png)
![Realtime 3d shadows](https://games.phoneky.com/pics/realtime3dshadows1x.png)
![PicoPalette](https://games.phoneky.com/pics/picopalette1x.png)
![Cursed Sword](https://games.phoneky.com/pics/cursedsword1x.png)
![Onitama chess-like abstract strategy boardgame](https://games.phoneky.com/pics/onitamachesslikeabstractstrategyboardgame1x.png)
![stabbycrabby](https://games.phoneky.com/pics/stabbycrabby1x.png)
![InkSpill](https://games.phoneky.com/pics/inkspill8711x.png)
![GridHack a grid based hacking game](https://games.phoneky.com/pics/gridhackagridbasedhackinggame1x.png)
![Shenzhen Solitaire](https://games.phoneky.com/pics/shenzhensolitaire76951x.png)
![Bumble Bots Low Rez](https://games.phoneky.com/pics/bumblebotslowrez1x.png)
![Tetris 1K (Pico1k Jam)](https://games.phoneky.com/pics/tetris1kpico1kjam1x.png)
![PicoCraft](https://games.phoneky.com/pics/picocraft1x.png)
![Shave Me!](https://games.phoneky.com/pics/shaveme1x.png)
![Princess Dab Queens](https://games.phoneky.com/pics/princess-dab-queens1x.jpg)
![Miss Halloween Princess](https://games.phoneky.com/pics/miss-halloween-princess1x.jpg)
![Blondie World Tour](https://games.phoneky.com/pics/blondie-world-tour1x.jpg)
![Clown Girl and Friends](https://games.phoneky.com/pics/clown-girl-and-friends1x.jpg)
![Dragon Girl Creator HTML5](https://games.phoneky.com/pics/dragon-girl-creator-html51x.jpg)
![Princesses Adventures](https://games.phoneky.com/pics/princesses-adventures1x.jpg)
A selection of easing functions
This is a selection of easing functions to make the movement of objects more pleasing to the eye.
Simple call the function (I have included separate functions to save space) and pass four variables:
t = how far through the current movement you are
d = the total duration of the movement
b = where the movement starts
c = the final change in value at the end.
For example, if you want an object to move from y = 20 to y = 100 in 30 update loops you would set:
t = the count, starting at 0 and ending at 30
d = 30
b = 20
c = 80
You can get some great effects and it really helps make movement that little bit more realistic.
Have fun and let me know if it's useful!