User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Looking for a good formula for camera?

  1. #1
    No Products Registered

    Join Date
    Feb 2008
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Looking for a good formula for camera?

    Hi, I'm looking for a better camera formula instead of this one:
    Always set center of x to float x of "camera"(camera is the active with the floatx value and floaty)
    Then: Add to y of ("player")-floaty("camera")/7.0 to floaty
    Add to x of ("player")-floatx("camera")/7.0 to floatx.

    My only problem is the X,the camera is moving ahead the player and not backward. I want to do an inverted action that will not move ahead the camera. is that possible?

  2. #2
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking for a good formula for camera?

    Hmm what do you need it for?

  3. #3
    No Products Registered

    Join Date
    Feb 2008
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking for a good formula for camera?

    I want to make the camera goes backward and not ahead of the player in order to see better what comes next when i move.

  4. #4
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking for a good formula for camera?

    Can you be more specific please, I don't want to give you something that's not what you want.

  5. #5
    No Products Registered

    Join Date
    Feb 2008
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking for a good formula for camera?

    The formula i posted wasn't what i want.. the camera make the player closer to the right edge of the window.. so when i move it is hard to see what comes because the player is a little too close to the right. i need the player to be far from the edge in the direction he is walking.

  6. #6
    No Products Registered

    Join Date
    Feb 2008
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking for a good formula for camera?

    I tried to do that, but it's not working

  7. #7
    No Products Registered

    Join Date
    Feb 2008
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking for a good formula for camera?

    So how do i get it??

  8. #8
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking for a good formula for camera?

    You could center on Xposition+Xspeed, or something like that, maybe Xposition+Xspeed*coefficient. It depends what kind of movement you're using actually

  9. #9
    No Products Registered

    Join Date
    Jun 2006
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking for a good formula for camera?

    Ok, so you want to make it so the camera is infront of the player so you can see ahead of you? Rather than tailing behind?

    What you need to do is assign a value for the players directions, so for example:
    If player is facing right: Set Value A to 50
    If player is facing left: Set Value A to -50

    Now, put this Player's value into the scrolling formular and that SHOULD work, in theory. If not, let me know and I'll make an example, I have done this before somewhere...

  10. #10
    No Products Registered

    Join Date
    Feb 2008
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Looking for a good formula for camera?

    Mantoid, can you make an example of what should work?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Where is a good place to get good sounds?
    By delta9857 in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 24th November 2010, 11:34 PM
  2. 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
  3. INI Formula Help
    By MajorityCA in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th February 2009, 01:28 AM
  4. Help with formula
    By LB in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 13th June 2007, 02:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •