User Tag List

Results 1 to 9 of 9

Thread: help with scrolling

  1. #1
    No Products Registered

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

    help with scrolling

    Im making a co-op 2 payer game. and i was wondering how u could have the screen scroll with the players but not let the other player get left behind.

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: help with scrolling

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=45090&page=1#Po st45090
    Just use it only with bigger play areas for the players, but keep in mind the must be that same or you will encounter bugs. Hope that helped, and don't for get to set share global values!
    Working as fast as I can on Fusion 3

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: help with scrolling

    You can either have a split-screen effect as posted above, or set the screen to centre between the two players. To do this, it's probably easiest to use a separate object for the "camera" and continually set its X position to X("Player 1") + (X("Player 2") - X("Player 1")/2), and the same for the Y position (I haven't tested that, but the idea is to set the position to the halfway point between the two objects).

    Or you could have what some classic game communities I'm in have termed "Annoying sibling scrolling", which was seen in Sonic 2 - one player is scrolled on and actually plays, with the second player as additional support and being returned to the frame when they get too far away.

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: help with scrolling

    Quote Originally Posted by DavidN
    set the screen to centre between the two players. To do this, it's probably easiest to use a separate object for the "camera" and continually set its X position to X("Player 1") + (X("Player 2") - X("Player 1")/2), and the same for the Y position (I haven't tested that, but the idea is to set the position to the halfway point between the two objects).
    I've tested it, and it works great.
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

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

    Re: help with scrolling

    can u gimme an example? like wat would the code look like?

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: help with scrolling

    I tried it, and it doesn't work for some reason, how ever, I seemed to have lost a working example of it. I'll try to look for it.
    Working as fast as I can on Fusion 3

  7. #7
    No Products Registered

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

    Re: help with scrolling

    thx alot

  8. #8
    Clicker Multimedia Fusion 2 Developer
    Maverick's Avatar
    Join Date
    Aug 2006
    Location
    Defiance, OH
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: help with scrolling

    I've seen an example somewhere on the site that was using the shared camera method and the ViewPort object to make the screen scroll in and out (like Smash Brothers when characters got farther apart). I wish I could remember what example that was >_<.

  9. #9
    No Products Registered

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

    Re: help with scrolling

    could still use some help guys

Similar Threads

  1. Best way to do scrolling like this?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 11th April 2012, 05:35 AM
  2. Help with Camera Scrolling for Side-Scrolling
    By ThatOtherGuy in forum File Archive
    Replies: 4
    Last Post: 29th August 2009, 09:38 PM
  3. Help with scrolling?
    By Amade in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 15th December 2007, 07:20 PM
  4. Scrolling
    By Keli in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th December 2007, 07:50 PM
  5. Scrolling sub-app
    By Flava in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th October 2006, 08:49 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
  •