Trouble cropping a sprite image

Get help using Construct 2

Post » Wed Aug 06, 2014 8:06 pm

Hi,
I've imported a png file that I made using inkscape into a demo I'm trying to work on. However, it seems that I cannot crop the white (clear) background in the image when it is imported as a sprite. I've tried to figure it out on my own, but to no avail. Hopefully someone has an idea of what the issue is.

Thanks in advance
B
3
Posts: 4
Reputation: 179

Post » Wed Aug 06, 2014 10:34 pm

Never used Inkscape but a quick Google search found this

http://askubuntu.com/questions/336153/h ... n-inkscape

Edit: and this
http://forums.gamesalad.com/discussion/ ... ground-tip

I tried the first one and it worked. Second one is same technique.
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Thu Aug 07, 2014 3:24 am

It might not be exactly what you are looking for but what I normally do prior to importing images:

Note: This requires Photoshop.

Hide flatten and hide layers until you have just the element \animation showing in Photoshop that you want to crop.
Navigate to Edit -> Trim
This will Trim just the truly transparent pixels as efficiently as possible
File -> Save For Web -> PNG -> Ensure transparency is checked
Save it.
Then Undo in PS until you get back to desired state and repeat for the next animation/layer.
This works good from Spriter too when you are wiring up body parts.....

Gillis
Image
B
36
S
14
G
11
Posts: 142
Reputation: 8,465

Post » Fri Aug 08, 2014 5:54 pm

Thanks for the help guys. I got it working now,
B
3
Posts: 4
Reputation: 179


Return to How do I....?

Who is online

Users browsing this forum: kellehk, Voytek and 26 guests