[Request]Opt's using the Render Cells

Discussion and feedback on Construct 2

Post » Sat Dec 06, 2014 8:12 pm

Couple ideas here:

1. Couldn't the 'Is Onscreen' condition benefit from render cells by only looking thru onscreen cells?

2. Here would be an interesting new system condition: 'Pick by distance from point'. We could then specify a x/y point, a distance, and a comparator (<,>,=,etc...). This could work with/without render cells, but it would obviously be faster with them.

3. There could also be a similar condition: 'Pick distance between', where we could define a min/max range to pick objects from (imagine a zone shaped like a torus). Again, this would use render cells where enabled to limit the number of objects that need to be queried.

Both of these would help to process local objects on large layouts, by providing an efficient way to pick and sort thru them (assuming said objects are on a layer with render cells enabled).
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187

Post » Sat Dec 06, 2014 8:26 pm

2 can already be done with a pick by comparaison, and I do not see much how would the cells work in that context as they are mostly rectangle areas, where a distance from point is defined by a circle area., same for 3.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Sun Dec 07, 2014 12:50 am

You don't need render cells for any of these, you can already do them with collision cells by testing for overlaps with rectangular objects to mark out an area.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

Post » Sun Dec 07, 2014 9:14 am

Whoops, forgot about that trick; thanks for the reminder!

Carry on...
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187


Return to Construct 2 General

Who is online

Users browsing this forum: jefftrier and 6 guests