User Tag List

Page 3 of 4 FirstFirst 1 2 3 4 LastLast
Results 21 to 30 of 32

Thread: 360 degree shooting

  1. #21
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    this is getting real hard, math makes my head hurt.
    is this the code you are refering to?:

    Set angle to: 180-ATan(((Y( "Laser" )-targetY( "Laser" ))*1.0)/((X( "Laser" )-targetX( "Laser" ))*1.0))

    that code doesn't seem to rotate from object A to B, and it seems it will only rotate the angle of the active object, not its path ... won't it? Is there a way I can calculate the X and Y position of the crosshair and create a value between 0 - 360 so I can add it to the original code you mentioned above?

  2. #22
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    this is getting real hard, math makes my head hurt.
    is this the code you are refering to?:

    Set angle to: 180-ATan(((Y( "Laser" )-targetY( "Laser" ))*1.0)/((X( "Laser" )-targetX( "Laser" ))*1.0))

    that code doesn't seem to rotate from object A to B, and it seems it will only rotate the angle of the active object, not its path ... won't it? Is there a way I can calculate the X and Y position of the crosshair and create a value between 0 - 360 so I can add it to the original code you mentioned above?

  3. #23
    No Products Registered

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

    Re: 360 degree shooting

    the x("laser") is the x position of the shooter and targetX("laser") is the x position of the crosshair.

    note: there are two events in that code right after each other, both are needed to cover the full 360 degree spectrum.

    Save the angle between the shooter and the crosshair somewhere and apply it to all bullets it shoots.

  4. #24
    No Products Registered

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

    Re: 360 degree shooting

    the x("laser") is the x position of the shooter and targetX("laser") is the x position of the crosshair.

    note: there are two events in that code right after each other, both are needed to cover the full 360 degree spectrum.

    Save the angle between the shooter and the crosshair somewhere and apply it to all bullets it shoots.

  5. #25
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    okay thx, but I've no idea to add this new code to the old one you gave me... I know I'm real slow <img src="/center/images/graemlins/frown.gif" alt="" />

  6. #26
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    okay thx, but I've no idea to add this new code to the old one you gave me... I know I'm real slow <img src="/center/images/graemlins/frown.gif" alt="" />

  7. #27
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    []Give me a break, I got an E in math. Anyways, I figured it out. The code is more like this I presume:

    Alterable Value D( "bullet" )+Cos(Alterable Value B( "bullet" ))*Alterable Value F( "bullet" )

    still don't understand that first part [/]

    Ok.. sorry! It's just that I find that very simple...

  8. #28
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    []Give me a break, I got an E in math. Anyways, I figured it out. The code is more like this I presume:

    Alterable Value D( "bullet" )+Cos(Alterable Value B( "bullet" ))*Alterable Value F( "bullet" )

    still don't understand that first part [/]

    Ok.. sorry! It's just that I find that very simple...

  9. #29
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    "Ok.. sorry! It's just that I find that very simple..."

    heh, no problem. It's just me who's stupid I guess

  10. #30
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree shooting

    "Ok.. sorry! It's just that I find that very simple..."

    heh, no problem. It's just me who's stupid I guess

Page 3 of 4 FirstFirst 1 2 3 4 LastLast

Similar Threads

  1. another 360 degree shooting question
    By Greasy in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 6th May 2012, 11:21 PM
  2. 360 degree shooting
    By Hayo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th March 2010, 02:49 PM
  3. 360 degree shooting
    By Triclyde in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th March 2010, 07:13 AM
  4. 360 Degree Shooting
    By Amade in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th February 2008, 12:46 AM
  5. What have I done wrong? (360 degree shooting)
    By gum in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th September 2006, 06:46 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
  •