Timeline for How to achieve smooth sprite movement with a scaled up canvas?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 27, 2015 at 12:42 | comment | added | madneon |
@Alexandre Vaillancourt All Sprites are children in OpenFL's "main" Sprite: class Main extends openfl.display.Sprite {...}
|
|
Mar 26, 2015 at 14:35 | comment | added | Vaillancourt♦ | I'm not familiar with your framework, but could it be that your your small sprites are children of your canvas? | |
Mar 26, 2015 at 12:58 | comment | added | Finn Hill |
Thank you, Alexandre. I set scaleX/Y to 4 once right after creating a new Bitmap canvasData = new BitmapData(w, h, false); canvas = new Bitmap(canvasData); canvas.scaleX = 4; canvas.scaleY = 4; . Is there a way to prevent translation from being scaled or I should use 64x64 sprites instead?
|
|
Mar 26, 2015 at 12:01 | history | answered | Vaillancourt♦ | CC BY-SA 3.0 |