White background on my sprite

Get help using Construct 2

Post » Sat Oct 19, 2013 3:12 am

When I add a sprite/object it always has a white part on it how do get rid of it...
B
4
S
2
G
1
Posts: 5
Reputation: 967

Post » Sat Oct 19, 2013 3:48 am

Are you making sure your sprites are transparent?
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620

Post » Sat Oct 19, 2013 5:59 am

How to do that
B
4
S
2
G
1
Posts: 5
Reputation: 967

Post » Sat Oct 19, 2013 6:00 am

I mean make it transparent
B
4
S
2
G
1
Posts: 5
Reputation: 967

Post » Sat Oct 19, 2013 7:00 am

I know of one way to do this, but there are other methods, but this is very easy. Do you have Paint.net? If not, download it. It's virus/spyware free, it's free, and it's a cross between the default Microsoft Paint and Photoshop, so it has many of Photoshop's features, such as effects and layers.

Open up your sprite in Paint.net. Where it says Tool, click the dropdown thing, and select the one that says "Magic Wand".
Two things to keep in mind: Flood mode and tolerance. Contiguous mode will only make a single area transparent, so any background not connected to your selection will not be made transparent. Global does a "total area" selection, meaning anything of the same color will be made transparent. Be careful with global, as if your sprite has any white in it, those will be made transparent. I recommend making any black/white in your sprites slightly off-color and not exactly Red=0/Green=0/Blue=0 (black) or Red=255/Green=255/Blue=255 (white).

Secondly, tolerance. This percentage determines how much of the image magic wand chooses to make transparent. Lower values means lesser amounts, and higher means higher amounts. 100% will make the ENTIRE IMAGE transparent. I would recommend 25%, but 15%-20% is probably better. Play around with this until you get it right, depending on how your sprite is. I use 15% usually, but I lower it if I have to work with colors that blend very finely to avoid losing them.

Now, just left-click your background and hit the delete key. Save it as png.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620

Post » Sat Oct 19, 2013 10:49 am

Depends on how you create them. If the program you are using has proper alpha channel support (like GIMP/PS), create a new layer when starting out and paint on that. Hide the background layer. Save it to png 24bitmindfaQ2013-10-19 10:49:16
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788


Return to How do I....?

Who is online

Users browsing this forum: Magistross and 28 guests