User Tag List

Results 1 to 2 of 2

Thread: Tutorial For Viewport?

  1. #1
    No Products Registered

    Join Date
    Jun 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Tutorial For Viewport?

    Hello everyone,

    Run into trouble using the viewport object. I triend implementing it into my game by copying the values from Andos work (http://click.andersriggelsen.dk/extensions.php) and substituting the various objects and sizes to my game. The background certainly moves with one character, but it wont allow both characters to constantly stay in the frame (like one can fall off the stage and it will not follow) which is what im using it for.

    Just wondering if theres something I'm doing wrong, or better yet, a tutorial for using the viewport object? Thank you!

  2. #2
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Tutorial For Viewport?

    The object is simple. Instead of copying values from other examples, try to find out what each argument/parameter for the object does.
    Each expression you input has a title that explains you what values it expects.

    For example: The arguments for the 'Set source region (centered)' action:
    Center-X coordinate
    Center-Y coordinate
    Width
    Height

    So which position on the screen do you wish to "zoom in" on?
    The width and height of the source region will be the rectangle that will be stretched to fill the entire width and height of the viewport object. If the width and height of the source region is the same as the object's own width and height then there will be no zoom. If you make the source region smaller than that, then the small area will be stretched larger and giving you a zoom effect. If you make the source region larger you will get a zoom-out effect.

    The ViewPort object doesn't have a 'set zoom percentage' action. Sorry if that confuses you, but this is more flexible.

Similar Threads

  1. Viewport in 2.5
    By Solgryn in forum Fusion 2.5
    Replies: 8
    Last Post: 18th January 2014, 02:40 PM
  2. Viewport in HWA
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 20th January 2012, 01:26 PM
  3. need viewport example
    By lover in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 8th November 2008, 12:20 PM
  4. ViewPort Bug
    By dragonguy in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th April 2008, 11:24 PM
  5. viewport.mfx
    By JoshHarris in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 19th March 2008, 03:54 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
  •