Cutting tiled background

Get help using Construct 2

Post » Wed Mar 27, 2013 10:56 am

Hello! Tiled backround object now cutting from right and bottom.
I wondering can I create one tiled backround object and use texture wich consist form different sprites (tileset) and select cutting texture from top and left? Actualy it will different sprites but one tiled backround object.
Thank you!
B
7
S
1
Posts: 10
Reputation: 921

Post » Wed Mar 27, 2013 11:44 am

Look into masking. There's a masking example in C2 which should help.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Mar 27, 2013 5:21 pm

Thank you for reply! Are you mean sprite1 covers sprite2? 2 times more sprites?
I am looking for optimizing my game for mobile and try to use ONE tiled background object for all non-moving objects.
Thank you!
B
7
S
1
Posts: 10
Reputation: 921

Post » Thu Mar 28, 2013 7:17 am

Maybe it's impossible?
B
7
S
1
Posts: 10
Reputation: 921

Post » Thu Mar 28, 2013 3:07 pm

For example I have 6 tiles texture of earth.


How can I use ONE tiled background object "earth" for all kinds of tiles: left grass, right grass and etc?

Thank you!
B
7
S
1
Posts: 10
Reputation: 921

Post » Thu Mar 28, 2013 4:23 pm

why not just use a sprite and each image will be a different frame of animation in the sprite. Set animation speed to 0 and manually set the frame for whichever image you need to show just like they did in the platformer tutorial. Import the images as frames in an animation.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Post » Thu Mar 28, 2013 5:08 pm

Thank you! I recently found that using tiled background is improve FPS on mobile. And I try to use tiled for all static objects. Even I fill all level with one tiled background object my FPS stay on place (~40), but if I using sprites for every platform I have FPS about 10.
Thank you anyway!
B
7
S
1
Posts: 10
Reputation: 921


Return to How do I....?

Who is online

Users browsing this forum: Renfd, supreme676 and 27 guests