Terrain problem

For questions about using Classic.

Post » Wed Mar 18, 2009 2:28 pm

Please, could you tell me what's wrong with my terrain:
[url:e5aic6qc]http://www.voimalaitos.org/temp/terrain.cap[/url:e5aic6qc]

1) Blue box goes inside the terrain when I move?
2) Red box stops at the top of the terrain?
B
5
S
2
G
8
Posts: 53
Reputation: 3,222

Post » Wed Mar 18, 2009 5:22 pm

You can't use canvas for pixel-perfect collision with physics. It doesn't work that way. Physics doesn't do per-pixel.

If you want custom collision masks for objects, use the Custom mask and edit the points on your physics objects.

Either that or use a different method to move your objects other than physics.

But whatever you do, it's not a good idea to use a gigantic canvas like that because it eats VRAM. The entire size of the canvas and all it's contents are stored as a texture in your video card's memory, and that's a huge texture. I suggest you make up your level out of smaller tiles, even if you have to draw 30 kinds of tiles to build the sort of shapes you want... it will run much better in the final game.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests