Layout like a globe.

Get help using Construct 2

Post » Tue Jan 22, 2013 9:39 pm

Helo guys!

I have an idea and want to know if it is possible and how can I do it.
I don't write very well in English, but I'll try to explain what I have in mind.(Pictures say more than words )
Look at this picture:


Imagine this being the screen of my game. What you see is an entire level of the game. The edges of the image are the limits of the layout.

I would like that the character do this:


The idea is that the layout does not have limits and that it was repeating itself as Tiles.
It would be the opposite of the "Asteroids" game. The camera does not follow the layout, it will follow the spaceship (Mario in this case).
In the picture I did it just horizontally, but I wish it were free, infinitely in all directions.
Does anyone know if this is possible?
PS: I plan to do a layout much larger than the canvas and not small like this example.

Many thanks in advance!
B
13
S
4
G
1
Posts: 17
Reputation: 2,337

Post » Tue Jan 22, 2013 11:06 pm

Aren't you using wrap behavior?
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Tue Jan 22, 2013 11:27 pm

If your doing a space game,and all you want is a random star backdrop,you could create them offscreen,above,below,left or right of the screen and they would come into view,dependant on the direction your setting off at...this could also be done with tiled backgrounds,but would require more system resorces...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Wed Jan 23, 2013 3:21 am

Joannesalfa - Wrap behavior will cause the character to be teleported to the opposite side of the layout. As in Asteroid. My idea was to create a large map made with tiles, seen from above (like old Zelda games). Where the character can walk endlessly in one direction, passing through the same point several times, as if he was circling a planet. The canvas will follow the character. When he will be teleported by the warp behavior, it will cause a interruption in camera movement, what will not be cool.

Pixel perfick - I don't know if it will work, because the player can choose to walk endlessly in one direction, which would eventually reaching the limits of the layout.

Thank you anyway guys!
B
13
S
4
G
1
Posts: 17
Reputation: 2,337

Post » Wed Jan 23, 2013 3:58 am

Maybe this Demo is something u can use.

Here is the Capx.

I suggest u first check the demo before opening the capx.
If u like the idea of this, then understand that u could add anything u want to come on screen by adding extra sprites/animations/variables etc.
The possibilities are endless.

Kind Regards.
Savvy001
B
56
S
20
G
13
Posts: 778
Reputation: 13,204

Post » Wed Jan 23, 2013 4:08 pm

Thank you for sharing your example. The random generation of the scenario lets players completely lost in the woods. Pretty cool!
The problem is that my scenario can not be generated randomly, things should be fixed in their places.
I was thinking something very similar to your example, added to the Pixel Perfick suggestion. I also thought about putting the character standing in the center of the layout. As my scenario will consist of tiles, I ordered that all the tiles, when reaches a certain distance from the character, it moves instantly to the opposite side. The tiles will removed from behind of character movement and placed in the first free slot in front of the character. An formula can be applied to all tiles.
I think it will work well, but maybe not for my game, because in certain situations, the camera will show the character to another part of the level ...

I guess what I'm wondering is perhaps quite complex. I think it will only be possible with some kind of behavior applied to the layout . What is not possible...

Anyway i will see what i can do with this idea!

Thank you!
B
13
S
4
G
1
Posts: 17
Reputation: 2,337

Post » Wed Jan 23, 2013 4:16 pm

I know what you are asking for, basically just like the Legend of Zelda on the NES. Where when you touch the edge of the screen, you "scroll" to the next screen.

Are you wanting each screen to be a separate layout?
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Wed Jan 23, 2013 4:21 pm

No, I want that the whole layout behaves like the "tiled background". And i wish to add a lot of character and events on that.

I've played a flash game like that, but I do not remember the name or where ...Oni Lo2013-01-23 16:23:14
B
13
S
4
G
1
Posts: 17
Reputation: 2,337

Post » Wed Jan 23, 2013 4:26 pm

I can get it to work, but not with the "Scrolling" effect yet. Basically you can just create hidden walls between each "Tile". Then when the player collides with the wall, it System->Scroll To a point on the center of next Tile.

Does that make sense?
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Wed Jan 23, 2013 4:56 pm

An example:http://www.youtube.com/watch?v=6_RbO0Vm-AA . Look at the signpost. See how the whole layout is repeated as a tile?

And that's the idea I mentioned above: http://mysterycoconut.com/wp-content/uploads/2011/09/ScrollingTiles.gif
B
13
S
4
G
1
Posts: 17
Reputation: 2,337

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests