Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Scaling sprites as they are preloaded


IkazuDasWhale
 Share

Recommended Posts

Ohaio,

 

I'm making a game with a pixelated aesthetic and want to know if I can scale sprites as they are loaded into the game in the preload function. I've created all my pixelart at pixel level but want them to appear in game at 3 times the size. I'm aware that I can scale objects afterwards in the create function however it'd be preferable to scale beforehand to minimise the amount of code needed. I also tried scaling groups of objects but this made the positioning relative to the world very messy. The last method, which I know is the simplest, is to scale all of the pixelart before loading it into the game however if its possible to keep the assets as small as possible that'd again be preferable.

 

Another problem I've had with scaling is trying to disable the smooth scaling that appears to be default.

 

 

Many Thanks :D

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...