User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18

Thread: Make enemies invisible outside window/visible inside window

  1. #11
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleMac Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    JHale's Avatar
    Join Date
    Dec 2013
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  2. #12
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    paobrasil's Avatar
    Join Date
    Apr 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you my friends...


    thank you JHale, this is what I'm looking for. I dont want to destroy objects and create everytime.

    What means "EnemyDistance" ?

  3. #13
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    I dont want to destroy objects and create everytime.
    Just to point out that my previous example was tailored on destroying,
    but you could just substitute "destroy" with "make invisible"
    and obviously revert it to "reappear"...

    The subtle meaning of the example was to demonstrate that looping is unnecessary in this situation
    although I'm a huge fan of the always-foreach combination..

    example: hide_objects.mfa

  4. #14
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    paobrasil's Avatar
    Join Date
    Apr 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks schrodinger. The list object it's just to manage, right? I dont need it to make you example works. Or i'm wrong?

  5. #15
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    You're right,
    it's just to show what happens behind the scene
    (since when objects get out of the screen you can't tell if-and which- is invisible!)
    and tell us he is doing a one-a-time job, and not all together.
    You can get rid of that

  6. #16
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    paobrasil's Avatar
    Join Date
    Apr 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again friend.

  7. #17
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleMac Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    JHale's Avatar
    Join Date
    Dec 2013
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    EnemyDistance is a global value that I created so instead of re typing the value if I want to change it I just change the global value I used.

    Quick tip::: try to use alt values and strings as much as you can so later if you need to change many events you can just change the alt value and it will effect every event that it uses.

  8. #18
    Clicker

    Fusion 2.5Android Export Module

    Join Date
    Jan 2007
    Posts
    257
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    What is the performance impact of using for each loops in comparison to using no for each loops?

    If for each loops have a slight impact you could try using behaviors instead. Everyone seems to overlook behaviors, but I think most people just don't comprehend how useful they can actually be, even if you can't reference groups in them.

    Just paste your code into a behavior and copy&paste that behavior to ALL objects you need to disappear/reappear. You avoid for-each loops this way and get the same effect.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Fit inside and adjust window
    By Olivier in forum HTML5 Export Module 2.5
    Replies: 36
    Last Post: 28th May 2019, 07:25 PM
  2. Fit inside & Adjust Window Size
    By ProdigyX in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 9th October 2014, 08:28 AM
  3. [RC3] fit inside and adjust window size issues
    By SoftWarewolf in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 11th February 2013, 07:08 PM
  4. make layer visible/invisible?
    By Iwantmyrpg in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 20th September 2009, 11:39 PM
  5. Window Control -> visible area manipulation
    By RayMarble in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 22nd December 2008, 10:50 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
  •