User Tag List

Results 1 to 9 of 9

Thread: Mouse controlled cannon on a tank

  1. #1
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mouse controlled cannon on a tank

    Hi!
    I need a little bit help with this.

    I use the mouse to controll the cannon on the tank.
    And I use always set the position on the tank.
    But when I rotate the tank, the cannon is not in the same position. It's also moving a little when I rotate the tank.

    I think maybe I can set the position to each direction a change the X,Y numbers, but it will take a lot of time. Is it a better way to do this?

    Thanks

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse controlled cannon on a tank

    Hi Robagast. I know you are a veteran coder, but are the hotspots on the cannon the same during rotation (centered)? Or does this not apply in your situation.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse controlled cannon on a tank

    I think it must be the hotspot. I tried to change the hotspot, but it's the same. I have uploaded the file. It's better to look at it by yourself.
    I have two frames. Test 1 and Test 2. You can look at both.

    The file size is about 7 MB.

    Thanks

    http://mfa.aquadasoft.com/view/1287429187-Firepower

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export Module
    Skyhunter's Avatar
    Join Date
    Jan 2007
    Location
    Croatia
    Posts
    452
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse controlled cannon on a tank

    Your hotspot is wrong, not just on turret, but tank hotspot is on center which is good for tank, but not good for positioning the turret which shouldnt be on center., you should set position to action point of the tank and set the action point on tank where you want the turret to be.

    Nice tank by the way.

  5. #5
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse controlled cannon on a tank

    But where shall the hotspot be? I'm so stupid with this hotspot and action point. Can you please explain me a little bit more? Or give me an example?

    Thanks

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse controlled cannon on a tank

    You should place the hotspot so that it will be in the same place as the turret rotates.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  7. #7
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse controlled cannon on a tank

    Ok, but shall the hotspot to the tank be the same on every direction? For example will the hotspot be exactle in the same place to the up direction as the left direction?

  8. #8
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse controlled cannon on a tank

    The hotspot should be on the same part of the tank. This won't necessarily be the same coordinates.

  9. #9
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mouse controlled cannon on a tank

    Thanks everybody. It works now.

Similar Threads

  1. Mouse Controlled BUG
    By imothep85 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd September 2012, 04:59 PM
  2. Mouse Controlled Objects
    By JimmyTHicks in forum The Games Factory 2 - Technical Support
    Replies: 7
    Last Post: 11th May 2012, 10:11 PM
  3. Mouse Pointer & Mouse controlled obejct
    By danjo in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 28th April 2012, 12:17 AM
  4. Mouse controlled gun
    By PimeX in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 14th August 2010, 08:50 AM
  5. Mouse click w/mouse controlled objects??...
    By WillBellJr in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 30th July 2006, 02:27 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
  •