Screen Wrapping?

For questions about using Classic.

Post » Mon Oct 03, 2011 10:56 pm

Is it even possible to wrap the screen when it goes out of bounds of a layout, seamlessly? Because I want to make a game that allows the player to walk in one direction and end up coming back from the other side.

Few things that needs consideration is that the screen resolution is 1024x768 while the actual layout is 2500x2500. Also the screen itself follows the player, which I also need to know how to do.

Simply. Tell me how to wrap the screen and how to make the screen follow the player.

I might be able to make the screen follow the player by simple means but if there were to be some kind of button or a function that does that please tell me.
B
3
G
1
Posts: 44
Reputation: 563

Post » Tue Oct 04, 2011 11:14 pm

I'm not sure about screen wrapping, but there is an easy pre-built option for screen following. Just go to the properties of your player object and check Groups > Attributes > Center view on.

To set the screen size to 1024x768: First select the layout by going to the layout editor and clicking on any empty area. You should see the layout properties in the property panel on the left. At the bottom is a link to the application properties. Click that, and you should then see the width and height options under Window Properties.
B
2
G
1
Posts: 5
Reputation: 460

Post » Wed Oct 05, 2011 1:29 am

Doesn't really solve my question but thanks anyway.
B
3
G
1
Posts: 44
Reputation: 563

Post » Wed Oct 05, 2011 6:10 am

There is a wrap behavior that will automatically reposition objects to the other side of the screen when they go out of a layout, but you'd need to make every map object do this and have them move instead of the player for a seamless result.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Wed Oct 05, 2011 7:19 pm

Here you go:
http://dl.dropbox.com/u/5426011/examples7/infScroll.cap

Collisions at the seams of the layout are the only technical issue that needs to be worked around. This is addressed in the example by extending the platforms at the edge of the layout a bit out of the layout.R0J0hound2011-10-05 21:46:14
B
79
S
24
G
54
Posts: 4,743
Reputation: 40,749

Post » Tue Oct 11, 2011 4:17 am

ah ha. Thank you very much.
B
3
G
1
Posts: 44
Reputation: 563


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest