Changing a sprite's opacity and back again

Get help using Construct 2

Post » Fri Jan 18, 2013 8:11 pm

Hey there!

I took a look around at the forums and youtube and I can't seem to find a good explanation for this so I Thought I'd come back here.

Currently, I have a sprite for the character, and when he collides with an object in the layout I want it to change it's opacity to 50%, and then when he's no longer touching that object, have it's opacity return to 100%.

Currently, I'm using a Boolean variable that when the sprite touches the object, it sets it to true and changes the opacity.

However, I can't seem to find a way to tell it "Or else, change to false" can anyone help, or give me a better way to do this?
B
4
Posts: 78
Reputation: 606

Post » Fri Jan 18, 2013 8:35 pm

Nevermind, I got it working! Thanks everybody!
B
4
Posts: 78
Reputation: 606


Return to How do I....?

Who is online

Users browsing this forum: Khamsou and 12 guests