Possible Opacity bug

Get help using Construct 2

Post » Sat Jun 14, 2014 1:03 am

Either there is a bug in the sprite's set opacity, or I am doing this loop wrong somehow:
Image

When I set logoFade to 1 it should change the opacity based on the current opacity, and stop when it reaches 0 or 100.

Ideas?
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824

Post » Sat Jun 14, 2014 2:20 am

You are currently telling him that it should increase it's opacity when under 99%, and decrease when over 1%

At 100%, it ll decrease 2% before getting inbetween (98%), where it is both under 99% and over 1%, thus applying both the addition and substraction of opacity, which is not the desired effect

I guess a better way to handle that would be to have logofade being equal to -1 or +1, and adding it to the current opacity.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Sat Jun 14, 2014 6:21 pm

Ah, yea, the behavior fade looks like it might work better. I'll let you know when I test it further.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824

Post » Sun Jun 15, 2014 4:41 am

you could add a boolean to the logo, then instead of logo.Opacity>1 use logo.fade is true
B
6
S
1
Posts: 51
Reputation: 502

Post » Sat Jun 28, 2014 2:24 am

I still have sporadic problems with changing opacities on some objects. There is definitely a bug in there somewhere..
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824

Post » Sat Jun 28, 2014 6:45 am

If you post a .capx showing just the issue, then we can verify or not whether this is an actual issue, or a problem in the events somewhere.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,391
Reputation: 58,464

Post » Thu Jul 10, 2014 12:46 am

Yea, I'll do that when I have a chance to unwind it from my proprietary work.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824


Return to How do I....?

Who is online

Users browsing this forum: atmas, Baidu [Spider], David181, OBLIVION and 22 guests