Discord
Login
Community
DARK THEME

How to make sprites have custom colors?

I want to make a game with lots of the same sprite (dice) but my current method for custom colors don't work as when I pause my project at the right time it will have issues as in having some small lines on the edge be the background color.

(also I only want a part of a sprite have custom colors, not all of it)

https://microstudio.dev/i/JimB007/spritefunctions2/

image = new Image( 100, 100 )
for i=0 to image.width by 1
   image.setRGB( i, i, 255-i, i, 255 )
end
screen.drawImage( image, 0, 0, image.width, image.height )

You can also modify the pixels themselves in the image using the getRGB and setRGB functions.

@Loginus That sprite functions is definitely something I am going to utilize! I must have a look at the explore section more. There must be a lot of gold in there!

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community