User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: zooming out after hitting a trigger.... using viewport , mfa included

  1. #1
    No Products Registered

    Join Date
    May 2015
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    zooming out after hitting a trigger.... using viewport , mfa included

    Hello again! It seems that the forums are my new home :P
    I am currently trying to have the game zoom out when overlapping another object. That way you can see the entire area for the boss battle. Its probably because I don't understand the viewport object well enough. If anyone can help, I modified my array example to show what I'm trying to do. Here's the mfa https://www.dropbox.com/s/kjkqg66e4i...tuffs.mfa?dl=0
    Oh yeah, It doesn't zoom out... that's the issue.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    yes, the viewport... it's a great extension but requests a little things to be known before using successfully
    (sorry I'm in a hurry I can't check mfa right now.... but thx for including that )
    mainly, you'll need your main game to be always viewed through the viewport object
    so it's likely that you'll have to setup the actual game at the bottom of the frame,
    and draw the viewport zone on top-left,
    then make its source region follow along the player
    keep in mind that you will project on screen the area that you draw in the frame
    and what you will see inside of this area is the "source region"

    you could also check this thread (a split screen setup):
    http://community.clickteam.com/threads/91400-Running-two-quot-cameras-quot-at-once/page2

    else, if just for zooming purposes,
    you could add all objects to same qualifier,
    and mass-scale them on need
    but you'll need active backgrounds too...

  3. #3
    No Products Registered

    Join Date
    May 2015
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Woot! I did it! now just to have it gradually zoom out instead of an instant change... HMMM

  4. #4
    No Products Registered

    Join Date
    May 2015
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wait a second... now things are broken wah.... https://www.dropbox.com/s/kjkqg66e4i...tuffs.mfa?dl=0

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Hey man, here's a fixed example: camera_stuffs1.mfa

    This includes a (very raw) increasing zooming example.

    If you want to see more clearly what's going behind the scenes,
    just drag down and increase the window size during play, you will see the actual game going on below the viewport "screen".

    Also, a quick (unrequested ) tip that may save you some time: when creating quick backdrops (as the obstacle blocks)
    if you set it to "motif" and draw the block, and tick the "integral dimensions" option, you can drag and create lines of blocks just by resizing.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Whops, I just realized I did the contrary to what you requested
    You wanted the game to "zoom out" and not "zoom in" on boss battle!

    Well, if you want to revert, just change the alt.values set at 360/500 accordingly, and instead of subtracting 1, add 1 some lines below....

    I should take again reading lessons,
    I guess googling ruined my previous habits of full reading and comprehending written paragraphs....


    EDIT: also, I forgot some details.
    1) You shoud set an action to "always - bring to front" on the "viewport object"
    otherwise it won't render the objects created on runtime (think of gun & bullets)
    2) I forgot to realign health bar & lives, you should obviously drag them down in the frame, just below the viewport "screen" area

  7. #7
    No Products Registered

    Join Date
    May 2015
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I am deciphering now. Btw, the reason it was 8000 x 2016 is because that's how big the real level i am doing. I love the zooming though... lol i'll save that in my new bag of tricks :P

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Yeah, I guessed that, I resized to make the example clearer
    You may keep the size you want, but for convenience leave a "free" 640x480 (or desired window size) zone on top-left corner of your level, and place there the viewport object.

    Then all you have to do is always centering viewport source zone on the player,
    and grow its width/height to zoom out, or shrink to zoom in.

    Window control will allow to show only the topleft corner, where the viewport is located,
    you may also want to prevent the user resizing the window by ticking "no thick frame" on application properties.

    Better also leave some "free" space around the level borders, or the image taken by viewport will glitch out.

    It's a really fun and powerful object, once you grasp its needs!

  9. #9
    No Products Registered

    Join Date
    May 2015
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, i'm still messing with it lol. I hate being such a noob, took me a whole day to actually figure out the array thing. This, may take longer since math is involved. :P Sigh, I love coming here, but I feel ashamed coming here at the same time, because I can't figure something out >.<.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Hey, I feel you've already achieved huge things for being a new user, you're talented!

    Don't be ashamed to ask, we all have things to learn and experiences to gather from the others
    Lots of people here use clickteam products in their various forms since years, this forum is a great resource and everyone is nice and helpful.

    Also, many times helping others figuring out things at the same time helps you having new ideas/approaches to things,
    so it's useful for both

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Zooming a level with Viewport Object, Lens object, etc?
    By Bipolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th January 2012, 07:02 PM
  2. Bullet not hitting object? :/
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 14th February 2011, 07:33 PM
  3. Hitting enemies in different parts of body?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 13th February 2011, 04:01 PM
  4. Zooming shader? (Layer zooming)
    By The_Alee in forum Hardware Accelerated Runtime
    Replies: 7
    Last Post: 6th November 2009, 03:53 PM
  5. Beam Hitting Multiple Enemies
    By Docilemouse in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th August 2008, 07:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •