User Tag List

Results 1 to 3 of 3

Thread: help checking were is the enemy

  1. #1
    No Products Registered

    Join Date
    Oct 2009
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help checking were is the enemy

    I am trying do the following, however i do not know how to check were the enemy is the current frame settings are 640 x 480

    The play area currently 1280 x 960 TESTING

    The line of sight is just a small active that is scaled and rotated between the enemy and the player.

    spread a value "0" in the ID variable
    of the enemies.
    Start the loop "Number of enemies" times.

    * LOOP enemies
    + Is the current enemy in the frame?
    Enable Group
    >>
    * LOOP enemies

    + Is the current enemy NOT in the frame?
    > Disable Group

    == GROUP enemy loop ==

    * LOOP enemies
    ID of enemy is = LoopIndex("enemies")
    > pick a enemy at random and Place line of sight

    * LOOP enemies
    ID of enemy is = LoopIndex("enemies")
    + Line of sight collides with player?
    > Do something

  2. #2
    No Products Registered

    Join Date
    Oct 2009
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: help checking were is the enemy

    I have a demo of this working if anyone is intrested.

    Altough somewhat changed to also incorp the player hiding behind say a house/wall or other.

    Each enemy works independ from each other and only the current enemy takes the required action.

    All enemies copied and pasted onto the play area.

    Even though i get little help i wish to share my sucess!

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Tisnart's Avatar
    Join Date
    Feb 2008
    Location
    On, Canada
    Posts
    1,073
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: help checking were is the enemy

    I'm interested!
    Where can I view it?

Similar Threads

  1. Distance checking
    By ZacQuicksilver in forum Multimedia Fusion 2 - Technical Support
    Replies: 23
    Last Post: 3rd June 2010, 09:55 PM
  2. do a checking thanks
    By melnet in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 12th October 2008, 12:05 PM
  3. Checking PING
    By Grim in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th March 2008, 10:46 PM
  4. Checking if in range
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 9th September 2006, 03:10 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
  •