Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hi, how would I go about adding Value A of each instance of Object A?
i.e. I have 2 object a's, 1 with value a of 20 and the other of 10, how would I add this up to get 30?
Develop games in your browser. Powerful, performant & highly capable.
No worries i made an example.
http://www.mediafire.com/?tet5nt7ptaj
It uses a loop with a condition "Pick highest Private Value" and then adds to global value, change private to 0 and then again until every private is 0.
Or you could just use
+ For each Sprite
-> Add Sprite('Variable A') to global variable 'count'
Awesome! Thanks for the help.
Or you could just use + For each Sprite -> Add Sprite('Variable A') to global variable 'count'
Sorry, but if I do that it just keeps adding to the total, rather than just show the total. Unless, I did it wrong.
> Or you could just use > > + For each Sprite > -> Add Sprite('Variable A') to global variable 'count' > Sorry, but if I do that it just keeps adding to the total, rather than just show the total. Unless, I did it wrong.
> Or you could just use
>
> + For each Sprite
> -> Add Sprite('Variable A') to global variable 'count'
do you mean the event is running more than once? - either add trigger once or add always-> set count to 0 above it if you need it to always evaluate it
Yeah, I tried that but it's acting all funky. I'll post my cap in the upload so maybe someone can look at it.
It's up. (Custom Slider Bar not working)