Continuous world

Get help using Construct 2

Post » Thu Feb 19, 2015 12:58 am

so i was wondering how i could make it look like the world is one big sphere, what i want is when i go top or left and reach the end of the layout it resumes on the other side ( bot or right in this example) but i dont want it to be notisable, i want the player to always be in the center of vision and when its almost at the end the other side of the map can be seen, how do i do this?
B
5
Posts: 77
Reputation: 604

Post » Thu Feb 19, 2015 1:28 am

My guess is by using one big tile background, that can be added/stiched to the left or right, top or down, next or upon another tile.

Then instead of the player moving left/right/top/down, the background is the one who should be moving, when you press left/right/top/down.
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Thu Feb 19, 2015 1:34 am

ekajuan wrote:My guess is by using one big tile background, that can be added/stiched to the left or right, top or down, next or upon another tile.

Then instead of the player moving left/right/top/down, the background is the one who should be moving, when you press left/right/top/down.


how dp i make this? can you send me a print or a capx?.. i don´t understand how i can stich something
B
5
Posts: 77
Reputation: 604

Post » Thu Feb 19, 2015 4:00 am

Stitching in this case is something that is done to the background sprite. It basically means that the left edge of the sprite matches up with the right edge, so the background still looks good when the player walks to the edge of it , and you see two instances of the background, one at the left edge and one with the right edge lined up so you can't see the seam.

This seems like an interesting challenge. If you do end up moving the background instead of the player, you have to move all the obstacles and enemies etc also. What I would do instead is designate a margin the width of the screen around the edge of the layout. For everything within that margin, you duplicate it so that everything that happens on the right happens on the left and visa versa. If the duplication is good enough, the player won't notice when they are teleported from one edge to the other. Then you modify all your pathfinding and enemy behaviors so they respect the boundary as well, and make sure enemies also get teleported when they hit the edge. I bet that using a Canvas can help you to visually duplicate parts of the layout, which makes it easier to hide that seam.
B
14
S
5
G
1
Posts: 189
Reputation: 1,536

Post » Thu Feb 19, 2015 8:32 am

I have made the tutorial. Check it whether it is like the one you need http://dapur-uang.com/en/construct-2-create-continuous-background/
I provide also the example, you can test it.
I hope the concept is the same with the one you have in mind.
B
10
S
5
Posts: 220
Reputation: 1,464


Return to How do I....?

Who is online

Users browsing this forum: LaurenceBedford, Tackla and 8 guests