Suggestion:native "random without repeat"

Discussion and feedback on Construct 2

Post » Wed Oct 01, 2014 7:19 pm

Hi guys,


i wanted to request a feature, like the title, maybe a native expression like "choose without repeat" or "pick random without repeat"
B
7
S
2
Posts: 57
Reputation: 591

Post » Wed Oct 01, 2014 8:48 pm

To achieve this you could add a boolean to the object you're looking to randomly pick from, something like "Picked_Before" - which is then set to true when the object is picked. To pick a not-previously-picked instance, put the condition Not Picked_Before directly above/before the pick random instance. If you do something unique to the instance that has been picked (put it on a different layer, set a different animation or behaviour etc) then you could use that as the first condition filter and there would be no need for the boolean.
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,287
Reputation: 47,558

Post » Wed Oct 01, 2014 9:15 pm

The how do I FAQ contains about four different items/examples of how to make that through events. It's not necessary one single action, but still it's manageable and native since it's done through the events system.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
296
S
119
G
96
Posts: 7,332
Reputation: 71,306


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests