[PLUGIN] Instance Group

Post your completed addons to share with the community

Post » Fri Apr 12, 2013 3:28 pm

@melonguns
It might help you.
http://www.scirra.com/forum/how-events-work-destroying-sol_topic50822.html
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Thu Apr 18, 2013 10:54 am

@rexrainbow

I use this "int(RandomGen.random)%3+1" value to set a variable, but why I always get 1?
And I also set seed with "wallclocktime"
B
5
Posts: 21
Reputation: 498

Post » Fri Apr 19, 2013 2:17 am

@MelonGuns

The return value of "RandomGen.random" is between 0~1.
So that "int(RandomGen.random)%3+1" will always return 1.
For example,
RandomGen.random = 0.9
int(0.9) -> 0
0%3 -> 0
0+1 -> 1
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Sun May 05, 2013 7:14 am

Update

Update picking function. No new feature added.rexrainbow2013-05-05 07:15:08
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Thu May 16, 2013 4:31 am

Capx: Pass SOL into function
SOL will be "pick all" when jumped into a "on function", this capx shown how to pass SOL into "on function" using instance group.


More over, instance group could return a SOL after "on function".rexrainbow2013-05-16 04:36:26
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Sat Apr 26, 2014 9:16 pm

I cannot believe I didn't find this plugin before. This is so powerful it should be an official plugin .
Rexrainbow, you are awsome
B
64
S
15
G
20
Posts: 469
Reputation: 16,027

Post » Wed Jul 08, 2015 3:28 am

Update

Add expression: FirstUID, LastUID to get first one or last one in a group.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Wed Jun 15, 2016 9:47 am

Update

Fix bug while pop UID value to 0. ( It will return (-1) for invalid before. )
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Fri Jun 17, 2016 7:00 am

Update

Add
- Condition:Pop random instance, Action:Pop random instance
- Expression:RandomIndex
- Expression:RandomIndex2UID
- Expression:RandomPop

to get a random instance or UID.


Add
- Condition:Pop by mapping result, Action:Pop by mapping result

to get an instance by the result of mapping function (sample capx)
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Mon Jul 11, 2016 1:02 pm

Update

Add "Action:Destroy instances", which can destroy all instances in a group. (Sample capx).
For example, user can put sprite and text object into a group, then destroy them all.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Previous

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests