Irrelon / ige

The Isogenic Game Engine
523 stars 139 forks source link

Announce: Tweening system update, new stepBy() method, original step() method to be renamed... #206

Closed Irrelon closed 11 years ago

Irrelon commented 11 years ago

Big thanks to @Doidel who has written an update to the tweening system adding a new method "stepBy()".

This makes combining tweens work by passing relative values to the method instead of absolute values.

So if you have an entity at 100, 100 and tween it with stepBy({x:100}) it will end up at 200, 100.

The step() method is being renamed to stepTo() and you will see a warning about step() being depreciated when you use it going forward.

This also brings tween step methods in line with the engine standard of calling methods To and By for absolute and relative.

This change is required to allow steps in relative co-ordinates which was not originally a planned feature but makes a lot of sense.

Again, thanks to @Doidel for his selfless work on the update and for contributing to the project!

I'll post here again when the change has made it in to the master branch. It is currently on a private dev branch.

Cheers!

Rob

Irrelon commented 11 years ago

This is now part of the "devWithUpdateMethods" branch.

That whole branch will make it to master soon.