User Tag List

Results 1 to 4 of 4

Thread: Mounting Turrets to Multiple Ships

  1. #1
    Clicker Multimedia Fusion 2
    SergeantBiscuits's Avatar
    Join Date
    Sep 2006
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mounting Turrets to Multiple Ships

    A'ight, here's the deal. I have multiple battlehips (the triangle-looking object), each with two turrets (the circle with two barrels).

    I'm trying to have the turrets stick to the battleships, one at 45 degrees to port and 18 pixels away, the other at 45 degrees to starboard and 18 pixels away.

    In the screenshot below, the first two events (98 and 99) create the turrets (one is assigned to the battlehip's flag 30, the other to flag 31 - when they are created it turns on the flag.) 'TurretMountUnit' is the fixed value of the battleship (so the turret knows which battleship it is assigned to), and the other two values are it's angle and postition relative to the battleship. Event 99 assigns the turret a TurretMountAngle of -45 so it stick to the other side of the ship.



    I have a fastloop running on an 'always' event for all 'ship' objects (the battleships and turrets are in that group.) Value Z is always spreaded.

    The third event (100) is supposed to stick each turret onto the battleship it is assigned to, but for some reason it only works for one of the battleships, not all of them. (Ignore the 'Inirtia' and 'MoveSpeed' lines.)



    This is what happens - the turrets on the topmmost battleship work fine, but the other four (they are stacked by two) do not stick to their battleships. (Note; the turrets that are just floating in space stay at the initial position of the battleships.)

    Anybody know how I can make all the turrets stick to their assigned battleships? I'm sure it's just something sneaky I have to do with the fastloops.

    Hope this all makes sense! xD

    Thanks a lot,
    Wes

  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: Mounting Turrets to Multiple Ships

    A similar problem happened here.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2
    SergeantBiscuits's Avatar
    Join Date
    Sep 2006
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mounting Turrets to Multiple Ships

    I had to do that exact same thing with the ships in my game, and it works fine. In fact I'll go help that guy out.

    But for some reason these turrets are giving me trouble.

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Location
    Cape Town South Africa
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mounting Turrets to Multiple Ships

    Spread val for ship and spread value for turret.
    turret val = ship value set pos to xy from ship.

Similar Threads

  1. Top down view graphics of military ships?
    By KLiK-iT in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 21st June 2012, 11:54 AM
  2. Ships shooting back!
    By scurvy in forum The Games Factory 2 - Technical Support
    Replies: 3
    Last Post: 14th December 2009, 03:24 AM
  3. large ship with lots of turrets question
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 28th November 2008, 03:18 PM
  4. Multiple Turret Shooting With Multiple Targets
    By Brandon in forum File Archive
    Replies: 4
    Last Post: 29th January 2008, 02:34 AM
  5. Need Advice on multiple turrets shooting units
    By maVado in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th January 2008, 11:17 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
  •