Clickys Posted March 5, 2017 Share Posted March 5, 2017 Greetings fellow coders , I recently started to use the phaser . Iam having trouble understand the API of the framework .(Iam new to js btw) . I will give you an example what i mean , i was following a tutorial about changing the scale of a sprite. The teacher wrote down sprite.scale.setTo(1); , and because i want to learn things i went through the phaser api -> sprites -> properties and i was searching for scale property but i couldn't find it . Its nowhere , and then after a lot of time i found out that phaser is inherits a lot of properties from PixieJs so i found it here http://www.goodboydigital.com/pixijs/docs/classes/Sprite.html#property_scale . So what should i do ? I mean how iam gonna learn the phaser framework when the manual is incomplete? Should i use both docs from pixie and phaser ? nkholski 1 Link to comment Share on other sites More sharing options...
scheffgames Posted March 5, 2017 Share Posted March 5, 2017 This is an interesting question - I would love to hear @rich opinion. I stumbled upon similar issues (existing properties not listed in the docs) but I got around by looking at examples and taking my info from there. Link to comment Share on other sites More sharing options...
samme Posted March 6, 2017 Share Posted March 6, 2017 The missing scale is a mistake (it's actually in docs/2.6.2/PIXI.PIXI.DisplayObject.html#scale), and the 2.7 docs are correct. In situations like that you can search for `scale` examples and look at Scale a Sprite inspect `sprite.scale` in the console. You can see it's a Phaser.Point. MeMyMo and scheffgames 2 Link to comment Share on other sites More sharing options...
Recommended Posts