So, I have an object which has 4 instances. I've created Ids through instance variables for them to distinguish them.
I want the when all of the blocks show say 3 on them the text box says "done", but the nested conditions are not working. Please help, I am not sure what I'm doing wrong. Logically it feels right.
You can add this as a sub-event...
BTW, I don't see any textbox/text action in your eventsheet.
*For each (puzzleBlock)
*Pick by comparison : (Puzzlebox.AnimationFrame = 2)
*Compare two values(Puzzlebox.pickedcount = Puzzlebox.count)
----->Set Text to ("Done")
Develop games in your browser. Powerful, performant & highly capable.
Thanks for the reply chadorireborn. The text box thing was just an example.
I tried what you suggested but I think I've messed it. I've never been able to use loops properly in c2 ever.
I've created a dummy file with your codes and some alternative codes that make it do what I want but I really want to learn how to use these conditions to save on variables and code repetition.
https://www.dropbox.com/s/e1wp4r0pnifjt ... .capx?dl=0
If you guys have some time please take a look at it.
whoisda - Sorry, I shouldn't have added a loop. It destroyed the purpose. The Pick condition is enough for that.
Removed the loop:
Thanks again — I'll check the file after I update my copy of C2 tomorrow. Thanks for taking the time and helping me out.