Zooming in and out (example)

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.
  • When ever i try looking for a way of performing a zooming in and out function for a game i could never really find one. So pretty much a long time ago when was working on my own smash bros-like game called zero-caliber and i came up with a way of zooming in and out if anyone is interested. It took me a while to find it due to how messy my event editor was back then. Not sure if this will be of any use to anyone but here.

    Please login to see this link. (soory for the 14mb file size i didnt feel like removing things much.)

    good luck making since of it. I plan on remaking it for my new game somehow but i still though i should post it. all i can tell from it really is that i used the view port object having it the same size as the application window, and have it placed into the center of the frame ( [aligned in center],0 ). the rest is written in the mfa. file.

    with it i was able to zoom in and out based on the size of the frame. When ever i passed the border it's just an infinite black.


    ( ohh yea one more thing, you move with the arrow keys, and jump and do other action with the [numeric 1] jump [numeric 2] attack. you can hop below platforms by pressing down twice.)

    Please login to see this attachment.Please login to see this attachment.

    some pictures

    ~2 blu 4 U too HaNdLe~

    Edited once, last by bybyblue (August 10, 2012 at 1:41 AM).

  • Great example ! I used the viewport object as well but I am experiencing a little jerking when scrolling in my level. I saw your example uses only one layer, that might be where my fault is. I am using 4 layers : background (so that it can paralax a bit), main layer, debug (bunch of hidde counters) and HUD. Makes it easier to work by hiding stuff etc... I have my viewport object sandwiched on the third layer so that the hud elements are not affected by the zooming... Maybe I should try removing some layers... Thanks for the example !

    Please login to see this link.

Participate now!

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