User Tag List

Results 1 to 5 of 5

Thread: Center the screen

  1. #1
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Center the screen

    Hi!
    I have a scrolling platform game. And I want to center the screen when the player is not moving.

    Example:
    +Always
    --Center display at (-250,0) from Player

    And I'm not sure how I can center the screen when the player is not moving, so the player is in the middle of the screen.


    Hope you understand me. I'm not always good to explain

    Thanks

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,261
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Re: Center the screen

    To center on the player, use the code you wrote in your post but change the position from (250,0) to (0,0) from the player. How does your screen scrolling work now?

  3. #3
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Center the screen

    Well, the problem now is that it suddenly changes from (-250,0) to (0,0) I want it to slide smothly from (-250,0) to (0,0)
    Some ideas on how I do that?

  4. #4
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Center the screen

    I uploaded the scrolling from my game, it should be smooth enough, you can change its behaviour by editing the values.

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=144587&#Post144 587

  5. #5
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Center the screen

    Thank you, maVado!

Similar Threads

  1. BUG with center screen to an object
    By Sphax in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 30th April 2013, 01:36 PM
  2. Screen moves like in Mountain Lion Notification center
    By iOSC in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd January 2013, 04:25 PM
  3. main character is always the center of the screen
    By mnovoa in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 29th May 2012, 01:11 PM
  4. Game Center
    By Kisguri in forum iOS Export Module Version 2.0
    Replies: 116
    Last Post: 23rd January 2012, 01:13 PM
  5. Media Center
    By Rene in forum Extension Development
    Replies: 0
    Last Post: 19th November 2009, 04:20 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
  •