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.
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,193

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
284
S
109
G
91
Posts: 7,319
Reputation: 87,487


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests