User Tag List

Results 1 to 4 of 4

Thread: Limit angle for weapon

  1. #1
    No Products Registered

    Join Date
    May 2015
    Location
    Poland
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Limit angle for weapon

    Im using this formula to calculate angle of players gun:
    Code:
    ATan2(Y( "minigun" ) - YMouse, XMouse - X( "minigun" ) )
    And angle of minigun is set exacly what I wanted, but... I need to limit this angle between -90 degrees
    (wich means weapon is facing straight down to the ground)

    and 60 degrees (wich is slightly up to the sky).

    //refrasing question.

    Now how reset var CurrAngle, when this is not working


    Event #23 set angle
    Event #24 resets to 0 angle...

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    You should remove the "OR" (and also always can go)
    Angle difference must be both >-90 and <= 60

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    now you need a "OR"

  4. #4
    No Products Registered

    Join Date
    May 2015
    Location
    Poland
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, nevermind. I found solution, crappy way, but now works.
    But good advices would be appreciated

Similar Threads

  1. Reloading a weapon holding a key
    By 4MindsStudio in forum Fusion 2.5
    Replies: 2
    Last Post: 15th January 2015, 01:07 PM
  2. Weapon use tutorial or example?
    By gamer123 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th June 2012, 10:38 AM
  3. A Sling weapon
    By Tiger in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 1st May 2012, 11:44 AM
  4. Help with setting angle to weapon!
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 11th February 2011, 08:39 AM
  5. A few weapon problems!
    By RealGameMaker in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 20th August 2009, 06:45 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
  •