How can I alter alpha channel of a sprite ?

Get help using Construct 2

Post » Wed Nov 12, 2014 8:40 pm

Hi there,

Im wondering, if you can make holes in sprites during gameplay. I would like to Have one big sprite than make small holes into it during gameplay. So I thought using alpha of a sprite will do what I want, but I didnt find much. Is that possible? Or is there other way to do it ?

It is for mobile device project so I need to have small amount of sprites. That means using blending effects is not the best idea I guess.

Thanks in advance for responses!
Try my creations on newgrounds or Google play, feedback highly appreciated!

ImageImage
B
9
S
1
Posts: 73
Reputation: 785

Post » Wed Nov 12, 2014 8:52 pm

......
You do not have the required permissions to view the files attached to this post.
B
66
S
24
G
7
Posts: 1,515
Reputation: 11,041

Post » Thu Nov 13, 2014 8:39 pm

Hi,

thank you for the reply, but since I earlier said, I would like to avoid blending, since I will make a lot of holes in one sprite. If I use blending effects I would have to use for each hole new sprite. I would like to avoid that. I tried Canvas plug-in to draw "holes" on canvas, with blending effect to make the holes in the sprite under it. but the catch is, that canvas doesnt have abillity to use blending effects :/ I tried to apply blend effect on whole layer where canvas are, but no luck.

So question remains the same, is there a way to alter alpha of a sprite in-game?
Try my creations on newgrounds or Google play, feedback highly appreciated!

ImageImage
B
9
S
1
Posts: 73
Reputation: 785

Post » Fri Nov 14, 2014 4:41 pm

So there is no other way, than using blending effects? Cmon, there has to be. I know it is a lot different, but in Unity and Unreal dvelopment kit, I was able to alter alpha channel realtime in game. What am I missing ?
Try my creations on newgrounds or Google play, feedback highly appreciated!

ImageImage
B
9
S
1
Posts: 73
Reputation: 785

Post » Fri Nov 14, 2014 6:43 pm

canvas doesnt have abillity to use blending effects

Not true.

You can use the canvas or paster plugins to do the effect you want. The way you erase is by using the "paste object" action with another sprite that has the "destination-out" blend.
B
92
S
32
G
109
Posts: 5,294
Reputation: 70,999

Post » Fri Nov 21, 2014 3:56 pm

Im sorry, my mistake,

but I cant figure out how to use it the way I want anyway :/ I would like to Have one big sprite than make small holes into it during gameplay. And some way to make holes into it, using as little sprites as possible. With canvas I think it is possible to do it, but Im not quite there :(
Try my creations on newgrounds or Google play, feedback highly appreciated!

ImageImage
B
9
S
1
Posts: 73
Reputation: 785


Return to How do I....?

Who is online

Users browsing this forum: Kin and 37 guests