User Tag List

Results 1 to 8 of 8

Thread: 4 Player Camera Support

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Feb 2007
    Location
    UK
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    4 Player Camera Support

    Hi guys,

    I was wondering if you could help me, I need a smooth scrolling camera which follow between 4-players.

    An example would be in this video (Arcade Mercs) > https://www.youtube.com/watch?v=VB-t5E4cakg&t=366s

    But I would like it not to snap when a player dies, so for example.

    Camera object scrolls between players 1-4, player 3 dies, camera object scrolls between player 1,2,4.

    The movement will be 8 direction for all players.

    Is this possible?

    Many thanks,
    Dave.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Feb 2007
    Location
    UK
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    EDIT > An example would be great if possible please.

    Cheers,
    Dave

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Feb 2007
    Location
    UK
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got it working, cheers.

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,725
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Well Dave. Would you share how you did it?

    Thanks,
    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Feb 2007
    Location
    UK
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by nivram View Post
    Well Dave. Would you share how you did it?

    Thanks,
    Marv
    I'll make an .mfa tomorrow.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Feb 2007
    Location
    UK
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually my version failed and does not work correctly, does anyone have a simple solution to this?

    I can post my failed solution if you like.

    Thanks,
    Dave.

  7. #7
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2010
    Posts
    120
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The example shown doesn't scroll between players, it seems to advance with the foremost character and never retreat. For what you want you'd need a camera target with a smooth scrolling camera (Zentaco has a good tut for this on youtube) and then you'd average the location of the camera target between your active characters ie x = (x1+x2+x3+x4)/4 perhaps including a direction modifier that weighted the location of the target if all the characters where looking in the same direction. You'd also need to take into account what happens when a character approaches/reaches the edge of the screen. Is progress stalled unless all the players agree? Is it weighted so the majority rules and the dissenting character is dragged?

  8. #8
    Clicker Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    TGeorgeMihai's Avatar
    Join Date
    Nov 2015
    Posts
    122
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    @JohnArtbox explained very well.

    Another way would be to compare the distance from each player to another, determine the 2 players that have the biggest distance between them and place the camera in the middle. Is not a perfect solution, but it should work in most cases.

    Another implementation, it involves math ( trigonometry ) . Search how to calculate the centroid of triangle (for 3 players) or centroid of quadrilateral (for 4 players).

Similar Threads

  1. Center camera on player with fake screen-scrolling?
    By AndyBazooka in forum Fusion 2.5
    Replies: 1
    Last Post: 30th August 2017, 11:46 PM
  2. Replies: 1
    Last Post: 26th October 2016, 07:01 AM
  3. Midpoint Camera Between Player and Cursor Example
    By Sumo in forum Guides, Tutorials, Examples, Widgets
    Replies: 2
    Last Post: 16th August 2015, 04:21 AM
  4. Camera focusing on player
    By Dmsds in forum File Archive
    Replies: 2
    Last Post: 2nd August 2011, 04:55 PM
  5. IP Camera and Web Camera Extension for MMF2
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd June 2010, 05:37 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
  •