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 <img src="smileys/smiley2.gif" border="0" align="middle" /> )
Look at this picture:
<img src="http://i.imgur.com/5W5aWTD.gif1" border="0" />
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:
<img src="http://i.imgur.com/WuPzSH9.gif" border="0" />
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!
Aren't you using wrap behavior?
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...
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!
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.
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... <img src="smileys/smiley19.gif" border="0" align="middle" />
Anyway i will see what i can do with this idea! <img src="smileys/smiley1.gif" border="0" align="middle" />
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?
Develop games in your browser. Powerful, performant & highly capable.
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 ...
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?
. 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
Savvy001, your links no longer work.
Did you ever find a solution to this?
I think that it is not possible with Construct. Maybe with plugins.
I was studying this subject, and saw that it is kind of complex, maybe too much for HTML5.
Do you mean THAT?
Do you mean THAT?
Yes, but with also all Enemies/objects that goes seamless with it, and also that could adapt to any kind of project
You only have to put environment/objects/enemies into the world!
When you position it exactly, it could simulate an one big world.
(the black "borders" are only to show you the "end of the world")