How to emulate Virtual Width / Height in a fixed zone?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello guys!

    I'm facing to a problem which actually stuck me to that point:

    - For each levels I load a background image (a Surface object) which represent the GAME ZONE (meaning: where ONLY the player can move his character).
    - I have trying to play with Virtual Width and Height for the character can be moved all on the Image surface, but, if the image surface is sized too small than the GAME FRAME APPLICATION, then black borders showed up in fullscreen (with the use of Ultimate FullScreen object and type).
    - NOW I want do that:

    In fullscreen only: be able to simulate Virtual Width/Virtual Height native-effect ONLY on Background image (loaded in a Surface extension). (As it then I'm be able to display an another Background image as Background application and have my Background level image aswell).

    Quick-Schema:


    ----------------------
    Actually I get that:
    ----------------------

    Please login to see this picture.

    1) This zone is the APPLICATION Zone, It is blackbordered in fullscreen.. And as you know no way for redraw in fullscreen that plain black which tend to make the game ugly... I know it is logic since it is the "GAME application blank window").

    2) This zone is the GAME LEVEL Surface Zone, a PNG transparent image loaded in a Surface extension object. It is naturally Virtual Width and Virtual Height enabled since I set the Virtual Size in Width/Height same as the Frame size. So when the player reach the border of the "ORANGE" rectangle then the level extend naturally and the invisible part become visible. The player can only move on the BLUE surface, all GOLD surface is somekind of hole.

    -------------------------
    What I want achieve:
    -------------------------

    Please login to see this picture.

    1) This zone is the APPLICATION Zone, It is now a new independent background image (in a Surface object or other object that can draw image) in fullscreen.. As it I can display a more cool image instead of the common BlackBorders!

    2) This zone is the GAME LEVEL Surface Zone, a PNG transparent image loaded in a Surface extension object. It is now Virtual Width and Virtual Height enabled with events. So when the player reach the border of the "ORANGE" rectangle then the level extend naturally and the invisible part become visible. The player can only move on the BLUE surface, all GOLD surface is somekind of hole.


    Do you have some ideas/tricks and tips to achieve that please ?

    Hey I'm French, Hi!

    MMF2 SoundScape Engine (Moteur d'environnement) :
    FR: Please login to see this link.
    EN: Please login to see this link.

    May the .NET be with you (Star Wars .NET©)

  • I don't think you can do that without using the manual options in the UltimateFullscreen object, and, even then, I'm not sure how easy it would be. It might not be possible even with the manual options in the UltimateFullscreen object, so please don't get your hopes up.

    My Please login to see this link. (which I actually use), my Please login to see this link. (which I mostly don't use), and my Please login to see this link. (which I don't use anymore pretty much at all really). If there are awards for "'highest number of long forum posts", then I'd have probably won at least 1 by now. XD

  • You might be able to use a sub-app as for your main screen and display it on a frame with your image to be used for the black bars.

    Kevin Ayre Please login to see this link.
    My iOS Apps: Please login to see this link., Please login to see this link. and Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!