User Tag List

Results 1 to 5 of 5

Thread: A problem with lag...

  1. #1
    No Products Registered

    Join Date
    Jul 2010
    Location
    narnia
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A problem with lag...

    O hai der. I was working on a game that's going to end up in the platform/shooting genre. I started with the shooting. I wanted to make my own engine for aiming since the mmf2 one only lets you shot in like 16 directions. So i did. I was kind of improvising since i hadn't really tried something like that before, and it kindof works. Its just that its really laggy. Could someone give me some tips?
    Attached files Attached files

  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: A problem with lag...

    There's a mathematical way to do what you want to do here.

    To get the angle between Point A (X1, Y1) and Point B (X2, Y2) in MMF2:
    ATan2(Y1-Y2, X2-X1)

    Thus, to get the angle between the an object at (X, Y) and the Mouse:
    ATan2(Y( "My Object" )-YMouse, XMouse-X( "My Object" ))

    See the attached example
    Attached files Attached files
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    Jul 2010
    Location
    narnia
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A problem with lag...

    Thanks.

  4. #4
    No Products Registered

    Join Date
    Jul 2010
    Location
    narnia
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A problem with lag...

    Ok, one more question: is there any way to make it so that you can shoot from the object more precisely? When i say launch bullet at 0,0 from cursor, it seem like it can only shoot in like 16 angles.

  5. #5
    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: A problem with lag...

    That's because the Launch Bullet action only uses the directions that you have in your bullet's animations, be it 1, 4, 8, 26, or up to 32. If you want precise bullet shooting, check this example. Despite the example's name, it is much more precise than just 1 degree, it is as precise as MMF2's double precision floats can get (which is really precise, approx. 15 decimal places)
    Attached files Attached files
    Working as fast as I can on Fusion 3

Similar Threads

  1. Pulling Problem and Shooting Problem
    By Duggabboo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st March 2010, 05:24 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
  •