espace Posted August 14, 2016 Share Posted August 14, 2016 hi, i can't find the solution to have all the information to make a tween by scale : i have the choice by this example :http://phaser.io/examples/v2/arcade-physics/body-scale but if i want more information by the documentation it's completely malajusted, long and not illustrated with syntax examples : http://phaser.io/docs/2.6.1/Phaser.Tween.html for example the yoyo effect where do you have an example of the syntax ? expect by the net i can't use it with the documentation... if i search via the "search doc" it is also maladjusted http://phaser.io/learn/chains if you want to find some explanation good described about an api with example and significations of syntax where do you find them ? WHY ARE THE DOCUMENTATION SO BAD WRITTEN ? On pixi.js it is clear and well written : http://pixijs.github.io/docs/PIXI.Ellipse.html i love phaser.js but i must recognize that the documentation is not a good point for me ...what do you think about it ? Link to comment Share on other sites More sharing options...
oddkraken Posted August 14, 2016 Share Posted August 14, 2016 I don't see what's wrong with the Phaser documentation. Did you look at the Tween methods? http://phaser.io/docs/2.6.1/Phaser.Tween.html#to explains very clearly how to tween the properties of an object to specified values. If you want a tween to yoyo forever, you can pass -1 as the repeat value and true as the yoyo value, as explained in the documentation. The body-scale example you linked also shows how to tween scale and yoyo it, which seems to be exactly what you want. Maybe I'm misunderstanding your question. Link to comment Share on other sites More sharing options...
carlosnufe Posted August 15, 2016 Share Posted August 15, 2016 Just find out the method what you want to use and read what it does. If it is not clear for you, you could dive into the code, it is not too hard Link to comment Share on other sites More sharing options...
PhaserEditor2D Posted August 15, 2016 Share Posted August 15, 2016 @espace3d If you look in the Phaser Chains original website: http://phaserchains.boniatillo.com There are many examples where the scale is tweening: (Note there I search for tween*scale) In addition I recommend to you to check out Phaser Editor (http://phasereditor.boniatillo.com) It has Chains implemented native and you can create a project with the Phaser Examples, so you can modify it and test the changes. Also the Phaser Doc is indexed offline and you can perform quick searches in all the doc text. (Plus all the other features of the editor) nocaoper 1 Link to comment Share on other sites More sharing options...
espace Posted August 16, 2016 Author Share Posted August 16, 2016 thanks both, it's more clear for me Link to comment Share on other sites More sharing options...
Recommended Posts