Can anyone give me a detailed information of "Viewport"?

0 favourites
  • 6 posts
From the Asset Store
Network Information
$4.50 USD
10% off
It provides information about the device's cellular and wifi connection, and whether the device has an internet connecti
  • Can anyone give me a detailed information of "Viewport"? I really don't understand what it is? Thanks...

    Also, can you explain it like you are talking to a kid that has no idea about this?

  • Hi Chadorireborn,

    I've a fairly strong web developer background where a viewport is basically the visible area of a webpage for a user. So for example, a page displayed on an iphone in landscape would provide a completely different area to play with than a 28" mac pro in safari.

    I haven't used them in my construct 2 projects yet but I would imagine it is the same.

    Basically it is a way of making sure people iwth different size screens all see the same thing, or atleast what you want them to

    Hope this helps

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It's basically just the view you have of your layout. If your layout was drawn out on the ground, and you looked at it through a camera. The camera would be the viewport.

  • I see, but I do not understand how to apply it. Can you please give me an example situation or .capx that viewport can be used? If it isn't too demanding .

  • There's nothing to it. Any capx would work. What you see is the viewport.

  • Are you familiar with the window size? It determines how much of your layout you see at a time. The window can move around with the scrollto action. The viewport expressions gives you the positions of each side of your window within the layout.

    What you do with this position information is up to you.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)