How do I draw Tilemap outside of viewport ? [PASTER]

Get help using Construct 2

Post » Mon Mar 09, 2015 10:47 pm

Hello,

I'm trying to set a split screen user the Paster addon, as described in this tutorial :
https://www.scirra.com/tutorials/1032/g ... creen-play

Everything works except when i add a Tilemap object to the layout. Attached is a modified capx from the example above to illustrate. I just scroll the viewport to the bottom left corner at layout start and added a Tilemap.

The Tilemap object appears only inside the viewport. So for the player 2, starting from right bottom corner of the layout, outside the viewport, the Tilemap is not displayed. You cas only see the green part from the player 1 screen. I think this might be caused by the tilemap behaviot that only display tiles that are inside the viewport, despite of the Paster addon that access image data from outside the viewport.

Has Anyone ever found this ?

Nabu
You do not have the required permissions to view the files attached to this post.
B
14
S
4
Posts: 112
Reputation: 1,287

Post » Tue Mar 10, 2015 12:16 am

The trick is you need to make sure all of the tilemap that you want to paste is onscreen before pasting.

For everything else the usual method of using paster as a screen is to
1. move paster to the location
2. paste objects
3. move paster back to original location

For the tilemap or even particle object you need to move both onscreen.
1. move tilemap to the negative of the location you want to draw. (-x,-y)
2. move paster to the top-left of the screen
3. paste tilemap
4. move paster back to original location
5. move tilemap back to (0,0)

The above will work as long as the paster object's size is less than or equal to the screen size. If it's bigger then you'll need to scale the layout or layer so tha everything is on screen before pasting.
You do not have the required permissions to view the files attached to this post.
B
94
S
33
G
114
Posts: 5,362
Reputation: 73,785

Post » Tue Mar 10, 2015 10:51 am

It works, thank youvery much.

How about having two Tilemaps (one ground, one solid walls), on separate layers and pasting Shadow Light ?
B
14
S
4
Posts: 112
Reputation: 1,287

Post » Tue Mar 17, 2015 1:40 pm

Up.

Sorry but I could not find any solution for Shadow Light object and Paster, as the Shadow Light is only drawn onscreen.
I saw the beginning of a discussion about it on the Paster topic, but no solution.

Do you have a tip for this ?
B
14
S
4
Posts: 112
Reputation: 1,287

Post » Sat Feb 04, 2017 4:42 am

i couldnt understand the instructions, can someone do an example capx?
Image

Image
B
38
S
14
G
7
Posts: 408
Reputation: 8,338

Post » Sat Feb 04, 2017 6:22 pm

Does the example capx in my post not work? I guess I'll have to have another look at it when I get the chance.

Edit:
Example seems to work fine.
B
94
S
33
G
114
Posts: 5,362
Reputation: 73,785


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests