Camera Wrap

Get help using Construct 2

Post » Sat Mar 26, 2016 12:36 am

This is possible to do a thing like this ? :
Image
My Twitter:

@Sirvoidd

My Tutorial:

Multiplayer with Photon
B
33
S
12
G
9
Posts: 73
Reputation: 7,114

Post » Sat Mar 26, 2016 9:20 am

I believe it's called Toroidal mapping. http://www.wildbunny.co.uk/blog/2012/04/13/implementing-a-wrap-around-world/

I did something similar by making the level out of 4 tilemaps which were slightly larger than the screen size then repositioning them as the camera scrolled to create the illusion on a wrapped map. The hard part was repositioning the objects so they moved with the tilemaps. To be honest the maths was a mess and the game slows down a lot with many objects so i think the method i used wasn't any good.

https://www.scirra.com/forum/viewtopic.php?f=180&t=120509

It would be cool to see how a maths guru would do a proper job of it, there are some very clever people on the forums.
B
43
S
23
G
21
Posts: 735
Reputation: 12,132

Post » Sat Mar 26, 2016 3:32 pm

This is unfortunate that we can't do that without a lot of math.
My Twitter:

@Sirvoidd

My Tutorial:

Multiplayer with Photon
B
33
S
12
G
9
Posts: 73
Reputation: 7,114

Post » Sun Mar 27, 2016 12:48 am

Depending on your situation, a solution would be to not move the viewport/window at all, but move everything else on the layout relative to the player instead.
Mistakes were made.
B
53
S
27
G
114
Posts: 1,699
Reputation: 64,446

Post » Sun Mar 27, 2016 1:01 am

oosyrag wrote:Depending on your situation, a solution would be to not move the viewport/window at all, but move everything else on the layout relative to the player instead.


My project is too big to make a thing like this ^^' but anyway I just wanted to make this for fun.
My Twitter:

@Sirvoidd

My Tutorial:

Multiplayer with Photon
B
33
S
12
G
9
Posts: 73
Reputation: 7,114


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests