User Tag List

Results 1 to 3 of 3

Thread: Midpoint Camera Between Player and Cursor Example

  1. #1
    Clicker Fusion 2.5 DeveloperiOS 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)
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Midpoint Camera Between Player and Cursor Example

    Hey Guys!
    I'm here with another example file that I made for my game that I thought could be useful for the community. Previously I used to always center the camera on the player, but that's no fun. I came up with a compromise that makes the game feel more interesting. The camera is placed at the midpoint between the player and their cursor. Therefore they can stretch out their view to look farther ahead in the game. There's a max distance restriction so the camera doesn't go too far. You can change the position of the camera too, so it's not in the center (line 4 change the 0.5 value. I prefer 0.25). The example comes with on-screen directions and values that you can test.

    You can test out the flash build here: https://www.dropbox.com/s/1rp0delx71...mera.html?dl=0

    -Sumo
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 (Steam)
    skisbit's Avatar
    Join Date
    Dec 2014
    Location
    Sweden
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Kudos to you for making me finally understand an implementation of an arctangent function!
    Your timing couldn't have been better, as I was searching for something like this to replace my obsolete midpoint system.

  3. #3
    Clicker Fusion 2.5 DeveloperiOS 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)
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks. I think I added the wrong link to test out the flash example. This should be the correct link: https://dl.dropboxusercontent.com/u/...intCamera.html

Similar Threads

  1. Midpoint Camera Distance Restriction
    By Sumo in forum Fusion 2.5
    Replies: 3
    Last Post: 7th August 2015, 04:19 PM
  2. Camera focusing on player
    By Dmsds in forum File Archive
    Replies: 2
    Last Post: 2nd August 2011, 04:55 PM
  3. 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
  4. Midpoint Scrolling
    By Mr_Monkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 8th January 2007, 05:45 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
  •