Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
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
Let me explain with an example:
I have 6 balls and every 2 seconds I would like 2 of these random become transparent
Is there a way to do this? Thank you
try "Pick random instance" and instance variable
Develop games in your browser. Powerful, performant & highly capable.
MadSpy Thanks for the answer but to take more than one random instance?
pick random instance of object with opacity=100 twice
MadSpy This works but most of the time it takes 2 times the same ball, how can I do?
you could use wait action between 2 pick or functions
MadSpy I've already tried, but only the first time work, after is completely at random..
I also tried to slow down the second pick but nothing changes and in any case I would like that when 2 balls disappear, other two come back visible.
just a thought.. pickedUpTimer.capx
Fiammaoscura In your screenshot you are picking a random instance and THEN checking if it is 100%. You should swap those lines so it first picks the 100% balls, then picks one of those. korbaach's solution may make this point moot, but still worth noting.
The solution of korbaach is what I wanted, however, thanks to all for answers!!