User Tag List

Results 1 to 2 of 2

Thread: Reverse array after for each loop .

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    anatol's Avatar
    Join Date
    Jun 2016
    Posts
    119
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Reverse array after for each loop .

    In classic loop i can spread value 0 in ID for example after start frame and get this (for 3x3):

    8 7 6
    5 4 3
    2 1 0

    After spread value 1 and
    Set Alterable Value A to 'abs(Alterable Value A -(Number of objects)) i'll get :

    1 2 3
    4 5 6
    7 8 9


    But how to do this in situation where i want to use For each loop?
    Every time i get inverse of my array

    Here is my code:
    -------------------------
    On group activation
    -start for each loop
    On each loop
    -set alterable string to string +string "id"

    ==========
    If my array is
    876
    543
    210

    after for each loop i get 012345678

    and vice versa

    i need to get
    123
    456
    789
    and for each loop 123456789

    sorry for my poor english )

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Unknowner's Avatar
    Join Date
    Oct 2011
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Duno if i understood but maybe u can start spreading the value in 1 instead of 0?

Similar Threads

  1. Processing Array Values with a Loop
    By Iyso in forum Fusion 2.5
    Replies: 6
    Last Post: 16th December 2016, 06:12 PM
  2. ForEach question: reverse loop?
    By Pineapple in forum Fusion 2.5
    Replies: 3
    Last Post: 17th July 2014, 12:32 PM
  3. Reverse loop an animation in active object
    By Bogeyman in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th August 2011, 05:25 PM
  4. fast loop & array index
    By delusan in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 19th October 2007, 06:37 PM
  5. Fast loop & array
    By scaneider in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 12th March 2007, 02:42 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
  •