Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] check if sprite has alpha then adding them together.

Author
Message
Game_Code_here
3
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 8th Nov 2022 13:02

I am trying to do a check to see what sprites loaded have a set GetSpriteColorAlpha set to 100 then add all of the total together, it is not going so well.
Here is my non working check.

I need a total value of the amount of sprites that are at the value.

then add that to a int.

The author of this post has marked a post as an answer.

Go to answer

Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 8th Nov 2022 16:08
This post has been marked by the post author as the answer.
this might help (see CheckAlpha() ):


Game_Code_here
3
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 8th Nov 2022 19:49
Well that just saved my whole game lol, now I have a playable game.

You always help me. Thanks.

Login to post a reply

Server time is: 2024-04-23 07:08:01
Your offset time is: 2024-04-23 07:08:01