[Suggestion] Save SOL with a tag

Discussion and feedback on Construct 2

Post » Sat Dec 14, 2013 2:05 pm

I think I am not the first one to suggest this:
An action to allow me to save the SOL to a variable, an array or a tag to check collision using different SOL .
One of the issue with C2 is the difficulty to check collision between instances of the same object without knowing IID of UID.
I am working on a game with jewels and I find it redundant that I have to use an invisible sprite using 10-15 events (maybe not the best solution).
B
79
S
21
G
23
Posts: 513
Reputation: 18,648

Post » Sat Dec 14, 2013 4:18 pm

Actually I was thinking the same thing today. I would like a way to save the SOL list and tag it.

In the mean time you can use RexRainbows InGroup plugin. It works as above. The problem is that InGroup I find works a little half hazzard. The InGroup has a for each loop. I tried using it. In one section of the code it works perfectly. in another it doesn't work at all. The InGroup ID system uses a custom ID rather than UID. At least that what it seems. But it does work.

Though thats why now I would like an Official SOL grouping system
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,018

Post » Sat Dec 14, 2013 7:58 pm

Whats wrong with putting the uid into a global?
Image ImageImage
B
169
S
50
G
169
Posts: 8,286
Reputation: 108,216

Post » Sat Dec 14, 2013 8:02 pm

You could also save all the uids into an array, and if you wanted then store the array with a 'tag' in a hash table.Arima2013-12-14 20:06:33
Moderator
B
94
S
33
G
33
Posts: 3,006
Reputation: 27,749

Post » Sat Dec 14, 2013 11:18 pm

Yeah, good points here, but saving SOL allows you to do bitwise operations with sets
more easily.
B
79
S
21
G
23
Posts: 513
Reputation: 18,648


Return to Construct 2 General

Who is online

Users browsing this forum: LaDestitute, lukewasthefish, Yahoo [Bot] and 4 guests