Draw rects in Tilemap for off screen tiles?

Discussion and feedback on Construct 2

Post » Tue Jan 28, 2014 6:18 am

I have a tile map that is 12800, 10240 in size with 32x32 tile size.

This tile map shows over 15,000 draw rects in the debugger even though the view port is only 800 x 480.

Are all tiles drawn even though they are way off screen?
B
21
S
5
Posts: 195
Reputation: 1,972

Post » Tue Jan 28, 2014 11:05 am

They are not drawn, as they are off screen, but as they are on the layout they need to be in memory and included in the game logic...

Quite normal and totally necessary, for instance if an event said move player to tile at 12800, 10240 it needs to be there when you arrive...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Tue Jan 28, 2014 1:54 pm

If that is true why would there be > 15,000 draw rects in a 800x480 space?

Just to be clear most of the tile map is empty. It contains tiles that are a road or path. This sits on top of another tile map that contains the ground tiles.ggibson12014-01-28 14:03:50
B
21
S
5
Posts: 195
Reputation: 1,972


Return to Construct 2 General

Who is online

Users browsing this forum: Darth Crusher, Yahoo [Bot] and 14 guests