User Tag List

Results 1 to 4 of 4

Thread: Quick "ForEach" question

  1. #1
    Clicker Multimedia Fusion 2 Developer
    alspal's Avatar
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    171
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Quick "ForEach" question

    I'm doing an always "foreach" loop for an enemy's Shadow. Because I'm pairing it with the enemy Sprite.

    Can I use "on for each loop"?

    Or do I have to use "on for each loop for object shadow" ? Which seems redundant since I've already specified when I started the loop that I want to do a loop for shadow.

  2. #2
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you have to do the seemingly redundant one but I'm not sure why this is. I've always had to use on for each loop for <INSERTTHINGHERE> to get it to work. I also got this to work where I did a loop for a qualifier and then specified an object under that qualifier in the actual on for each loop condition.

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    You don't need any loops. Just say "always: shadow-> set position at ... enemy"

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    MuddyMole is correct, just make sure to destroy a random Shadow whenever a Sprite is destroyed.

Similar Threads

  1. "Cannot load joystick2.mfx" when "Compress the runtime" unchecked. Fine when checked.
    By DistantJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th September 2013, 09:44 PM
  2. Beta 25 - ForEach, Lacewing and "no GPU" popup
    By Ls2 in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 28th March 2012, 12:38 AM
  3. Quick Time object & "User clicks..." problem
    By kikiriki in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th December 2010, 11:05 PM
  4. Quick Question about "Mod" operator
    By HGHST in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 3rd January 2009, 02:59 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
  •