User Tag List

Results 1 to 5 of 5

Thread: How to activate something only when in frame?

  1. #1
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to activate something only when in frame?

    I asked about this in chat too, and got a suggestion - but it was too hard to fix then, so I took a break. And now I wanna try again

    My problem is that the enemies in my world are completly ignoring every kind of event Im making to stop them from move before they enter my frame window. I have used "Enemy is in play area", and it did not work. Ive tested a few other things too, but I think the thing Im looking for is an event to add bellow the enemy events. I remember from the chat that I should add something like X position of Enemy is in frame position or someting, but I dont remember all. If someone could make a Copy-Paste-able sentence, it would be perfect cause Im kinda noob and dont know where all the stuff are My enemy object is called "Enemy".

  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: How to activate something only when in frame?

    It's very difficult to help you with you just telling us the name of your enemy object. We might be able to eliminate the problem in the first place if you explain how the enemies are moving into the frame. Is it a custom movement or one of the default ones?
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to activate something only when in frame?

    Ah, well the enemies are always moving towards my player.. This is how it moves:

    X Position of Enemy < X("Player)+1
    + Enemy: Set X Position to X("Enemy")+2

    X Position of Enemy > X("Player)-1
    + Enemy: Set X Position to X("Enemy")-2

    Movement selection is static.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to activate something only when in frame?

    You could add this condition to the event - it may not make a lot of sense on the surface, but...

    "Enemy" is NOT getting more than -16 pixels away from window's edge

    This is under the "Position" submenu of the Enemy object - you need to negate the event for it to have the opposite effect as written, and the "-16" means that the event will only run if the enemy is within the game window or fewer than 16 pixels away from it.

  5. #5
    No Products Registered

    Join Date
    Mar 2009
    Posts
    412
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to activate something only when in frame?

    Thank you, David

Similar Threads

  1. Any way to activate the keyboard/edit box?
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 17th December 2013, 08:06 PM
  2. 1 event in first frame activate an event in another frame? Sub-Application Tool
    By CloudExSolider in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th October 2013, 11:23 PM
  3. activate group via expression?
    By oasuke in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 26th January 2012, 02:11 AM
  4. Can't activate
    By Christian_Wheel in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 19th January 2011, 06:18 PM
  5. Can you activate a dll file in registry using ICP?
    By aniceguy in forum Install Creator and Patch Maker
    Replies: 13
    Last Post: 16th April 2009, 07:33 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
  •