Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3980

Is it possible to scale a sprite, and have that new size be set as scale 1?

$
0
0

Hi all

I've been making a game with lots of sprites which use high resolution textures.

I am hoping to give the option to replace these textures with lower quality ones for performance benefits. I would have to scale them up (half assets to scale * 2).
However, there are times when I tween the scales on sprites. (tweening to scale 1.5 would have made a sprite larger, it would now make it smaller)

A quick way of solving this would be to scale the sprite straight away, and then lock that as the default scale (1) so I wouldn't have to make a large amount of changes.

Is this possible? I would prefer to not scale up the textures themselves, as I believe this would have the same performance as using the high resolution textures in the first place. 


Viewing all articles
Browse latest Browse all 3980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>