User Tag List

Results 1 to 2 of 2

Thread: Object targetting issues.

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)

    Join Date
    Sep 2007
    Posts
    242
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Object targetting issues.

    I'm attempting to make a scenario where a missile object hones in on an enemy, chases it down, and destroys it.

    I got it to work, but the code has a bug I can't seem to fix.

    Here is how my code works.

    I have an object which is a targeter. All of my enemies are part of a group called enemies.

    Here is the code.

    Upon pressing S
    Negate - group.enemies is getting closer than 0 pixels from windows edge
    group.Enemies is visible
    pick one of group.enemies
    Then
    Set targeting object's position at 0,0 from group.enemies
    create homing missle at 0,0 from player.

    group.enemies is visible
    targetting object is overlapping group.enemies
    Then
    set targeting object's position at 0,0 from group.enemies


    The homing missle has it's own code where it hones in on the targetting object. The problem is that when you fire off more than one missle, if the target is destroyed the remaining missles still chase the targetting object, which is pasted over nothing.

    I'm trying to figure out how to check is the object the targetting object overlaps is invisible. If I can do that then I can call an event that will put it over another enemy who is onscreen.

    The trouble is that when you "destroy" enemies they don't actually get destroyed. They simply go invisible so that they can be "respawned" later. So I can't just make the targeter retarget if it's not overlapping an enemy. Since it still is.

  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: Object targetting issues.

    Object is overlapping Enemy & Enemy is visible (or negated)
    Working as fast as I can on Fusion 3

Similar Threads

  1. Perspective object issues...
    By happygreenfrog in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 18th July 2012, 02:21 AM
  2. top down shooter(tower defense); targetting enemy
    By infinitum3d in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 8th March 2012, 01:19 PM
  3. Get Object Issues
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 1st May 2010, 02:04 AM
  4. Lock on targetting.
    By Malice in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th August 2009, 01:36 AM
  5. [Bug] Lua object issues with HWA beta 2c
    By xyzzy in forum Hardware Accelerated Runtime
    Replies: 4
    Last Post: 27th February 2008, 04:11 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
  •