User Tag List

Results 1 to 4 of 4

Thread: ForEach for object movement question

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Mar 2007
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ForEach for object movement question

    Sorry if this has been asked before, if in fastloop we move object like this:

    Always
    :start loop "0" 100 times

    onloop "0"
    +Alterable Value A of bullet > Loopindex ("0")
    +bullet in not overlappping ship
    :Set X position to X ("bullet")+1


    So, my question is how to achieve the same result by using ForEach? Sorry my english suck, thanks.

  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)
    This defeats the purpose of ForEach and the method you use currently is actually faster. Unless you mean = instead of >
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Mar 2007
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The method i use cause slowdown when having 600+ bullet on screen, thought using ForEach can be faster, thanks for answer.

  4. #4
    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)
    It is only faster if you mean to type = instead of >
    Working as fast as I can on Fusion 3

Similar Threads

  1. ForEach loop question
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th July 2014, 11:05 PM
  2. Question about ForEach and looping in groups
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th June 2013, 02:21 PM
  3. Platform Movement Object Question
    By Netflyer165 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th February 2012, 11:14 PM
  4. Platform Movement object Question
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th February 2010, 07:14 PM
  5. Newbie question about Platform Movement Object
    By Brian in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th April 2008, 11:57 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
  •