User Tag List

Results 1 to 2 of 2

Thread: How to use ForEach object?

  1. #1
    No Products Registered

    Join Date
    Nov 2013
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to use ForEach object?

    This is how my enemies in my game are supposed to work in my game.



    Then, I added these 2 conditions (below) to each and every event that are related to the enemies.
    On ForEach loop "Enemy collision box"
    On ForEach loop "Enemy animation object"


    and in the frame editor, I made several duplicates of each of the 3 collision boxes.

    enemy animation objects have the "create at start" unchecked.

    All 3 types of enemy have the same AI events, but of course, it is meant that each instance is behaving independent to its duplicates.

    But it doesn't work (only 1 per enemy type is following and moving according to the AI I coded, the others (duplicates) that are not moving are imitating the animations of the working/moving one).

    So how exactly do I use the ForEach object?

    Edit: I already looked at the sample files of ForEach in the Examples folder

  2. #2
    No Products Registered

    Join Date
    Nov 2013
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, I still can't fix this. I have attached a new file (because my game file is already too complex at this point).

    For every enemy, PMO sets object to a single instance of collision box object. Each collision box object is supposed to launch its own corresponding enemy animation object and also act independently from other collision box duplicate objects.

    The AI is simple, walking left and right based on an alterable value.

    I still can't make the ForEach loop work.

    Please help. Thank you in advance.
    Attached files Attached files

Similar Threads

  1. No ForEach object for XNA build?
    By King_Cool in forum XNA Export Module Version 2.0
    Replies: 8
    Last Post: 27th September 2012, 02:44 AM
  2. ForEach object
    By Ross in forum SWF/Flash Extensions
    Replies: 5
    Last Post: 12th February 2011, 01:39 PM
  3. Feedback: ForEach Object
    By Pixelthief in forum Extension Development
    Replies: 5
    Last Post: 8th August 2010, 11:41 PM
  4. ForEach Object (Possible Bug?)
    By Atom in forum File Archive
    Replies: 12
    Last Post: 27th April 2010, 05:06 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
  •