Hello all, I've been reading the forum and the wiki for quite some time ninja style. First I want to thank the developers for putting Construct up, because I'm quite programming impaired, and Construct makes it fun and easier. I decided to try to make a management hentai game and it happens that I cannot solve a problem even after searching everywhere.
What is going on is that, on the click of a button, a private variable in a placeholder sprite is checked for a certain state. Some sprites have this state, while others do not (that is decided on the previous layout). And I want that for each sprite with that state do different specific actions, change the state, and at the same break the whole loop.
in simpler words, the actions of the first picked sprite must be the only ones being executed. If at one time one sprite is picked, all the other actions for other sprites should be excluded even if they meets the condition of the triggering state.
If I do a "For Each" all sprites with the triggering state will be picked at the same time. I tried placing various Else's (with a condition right next to it) but it only executed the first else, the subsequent elses were ignored. I also tried to do a On Loop and placing subevents for each case, and on each of the actions for them I placed a Break current loop, but they all showed at the same time.
I found that in C++ this works with a switch case command, where in each case, the switch loop is broken with a break command.
Hope I'm making myself clear. thank you for your help