How do I ajust 8bit image borders ?

Get help using Construct 2

Post » Sat Sep 20, 2014 5:16 am

Hi guys, to optimize the size of my game I tried to convert my image to 8bit png in photoshop. In construct there is a white! border arround my player. is there a reason ??? can I have a perfect transparent background arround my sprite like in the higher bit images ????


thanks :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,860

Post » Sat Sep 20, 2014 8:27 am

Im not 100% sure but I don't think that the 8 bit pngs in PS works very well with opacity, and therefore if your sprites in 24 bit depth have smooth edges, they will render a white border around the image where the opacity occurs.

To solve it you have some options:

1. Make all sprites with hard edges, mean you paint them with pixel setting in PS. This is the time consuming way, as you will have to repaint all the sprites.
2. You can use this website to convert 24 bit to 8 bit pngs and will preserve the opacity as well. You can only do it with one image at the time so if you have a lot it will ofc take some time as well. To save the 8bit image you just right click the image it self and choose "save image as.."

http://www.8bitalpha.com/
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,828

Post » Sat Sep 20, 2014 10:07 am

thanks... i will try the site... do U think it makes a signifant change for performance having all 8 bit images ???
B
37
S
16
G
2
Posts: 447
Reputation: 4,860

Post » Sat Sep 20, 2014 10:30 am

Hi, I tried in fireworks of adobe...works also fine...I think there U can make a batch conversion :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,860

Post » Sat Sep 20, 2014 12:12 pm

Go to this link...I made a small tutorial...

https://www.scirra.com/tutorials/1166/c ... -fireworks
B
37
S
16
G
2
Posts: 447
Reputation: 4,860

Post » Sat Sep 20, 2014 12:27 pm

It will actually only have impact on the download-size.
While playing all images will be put into memory unpacked, so a 64x64px image will take up 64x64x4 bytes no matter what format you have saved it in.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Sep 20, 2014 1:08 pm

Uh...really ? So the bit number is not affecting the game performance ???
can U give me tips to have better performances...I mean general tips..I read a few scirra blogs about...but if u can give me a personal tip it would be nice :)

thanks:)
B
37
S
16
G
2
Posts: 447
Reputation: 4,860

Post » Sat Sep 20, 2014 2:37 pm

I think most blogs and tutorials already explain the basics:

- try to avoid every tick events if triggered events will do the trick.
- try to reduce the collision-checks
- try to limit the amount of objects on the screen to prevent overdraw and not use precious memory
- use groups and (de)activate them when needed..
- use functions instead of repeating (almost) identical events
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Sep 20, 2014 4:44 pm

Thamks very helpful :)
B
37
S
16
G
2
Posts: 447
Reputation: 4,860


Return to How do I....?

Who is online

Users browsing this forum: ksiads and 1 guest