Problem with PNG sprite(s)

Get help using Construct 2

Post » Thu Mar 06, 2014 6:50 pm

Hello. I have problem with png sprites..

My sprite is:
Image

When I insert it in C2, it looks:
Image

But when I run the layout, it looks:
Image
*Notice the black dots around the sprite.. It looks like the sprite is low quality pic.

How can I solve it? Is it any solution.. Thanks for your help! 8-)
B
6
Posts: 11
Reputation: 291

Post » Thu Mar 06, 2014 8:01 pm

Two things come to mind:

1. Point sampling and scaling, did you do that?

2. Do you by any chance generate your sprites in a loop? A botched loop that generates like 50 sprites on top of each other makes the alpha-edge look like that.

It's really helpful to see a .capx...
B
72
S
28
G
32
Posts: 477
Reputation: 19,640

Post » Thu Mar 06, 2014 8:19 pm

This is when i debug with the original resolution... No scaling, nothing. Selected Crop in Fullscreen in browser option..
Image

Sorry, I cant post the capx file, cos its part of a whole large project.. Sorry.. :?

And also, there is no loop with that sprite
B
6
Posts: 11
Reputation: 291

Post » Thu Mar 06, 2014 8:26 pm

sorry for the double post.. I used this code with that sprite... When the layout is opened this happens:
Image
B
6
Posts: 11
Reputation: 291

Post » Thu Mar 06, 2014 8:35 pm

@Petkoski - I noticed your second Else statement is indented one step too far. It should be on same level as previous Else.
B
33
S
7
G
8
Posts: 312
Reputation: 8,528

Post » Fri Mar 07, 2014 7:34 am

@Petkoski @Manley23 do you even need elses there? Why not just
Awardlevel = 1
Awardlevel = 2
Awardlevel = 3

Also, seems like you're creating sprites on a loop. Run it on debug and see how many sprites are being created. If that's the case, add a Trigger Once to these events
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Sat Mar 08, 2014 8:21 am

I solved it with the Trigger Once condition.. Thats all for the help, especially @7Soul ..
B
6
Posts: 11
Reputation: 291

Post » Sat Mar 08, 2014 3:57 pm

Good for you that's how you learn dear friend
B
245
S
39
G
15
Posts: 1,946
Reputation: 40,276


Return to How do I....?

Who is online

Users browsing this forum: alextro, Ryan Kocourek, Yahoo [Bot] and 7 guests