User Tag List

Results 1 to 4 of 4

Thread: Clearing portions of an array

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    StrudelCaboodle's Avatar
    Join Date
    Dec 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Clearing portions of an array

    Is there an elegant solution for "clearing" or setting CHUNKS/PARTS of an array to 0 without affecting the whole array?

    I'm trying to find a simple way to set multiple values in an array in a range of the X Y and Z coordinates. Eg: write 0 to (10,10,10) thru (20,20,20) of an array, but not (0,0,0) thru (9,9,9).

    Fusion won't let me say "Write Value 0 to (Range(10,20), Range(10,20), Range(10,20)) of Array"

    Thanks!

  2. #2
    Clicker Fusion 2.5 (Steam)
    Linky's Avatar
    Join Date
    Mar 2020
    Location
    Egypt
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Running a loop can achieve exactly what you are looking for

    Example:

    Code:
    - Run loop "Fill" 10 times
    
    *On loop "Fill":
    -- Write value 0 to (LoopIndex("Fill") + 10)
    Use more math techniques / loops to achieve the results you want

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    StrudelCaboodle's Avatar
    Join Date
    Dec 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm...This seems to be the right track. Unfortunately I can't get that to work with writing 0 to the X, Y, and Z index of an array. Though I'm sure I'm doing something wrong...

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    StrudelCaboodle's Avatar
    Join Date
    Dec 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Linky View Post
    Running a loop can achieve exactly what you are looking for

    Example:

    Code:
    - Run loop "Fill" 10 times
    
    *On loop "Fill":
    -- Write value 0 to (LoopIndex("Fill") + 10)
    Use more math techniques / loops to achieve the results you want
    Alright! Got it working using a combination of fast loops and some other trickery. Thank you for the help, Linky

Similar Threads

  1. Clearing INI file data
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 16th February 2012, 07:23 AM
  2. Replace portions of retrieved string with commands
    By CBSection31 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 3rd December 2010, 01:18 AM
  3. Clearing Cache
    By Game_Master in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 17th August 2009, 01:08 PM
  4. Clearing the Cache?
    By pinacoladaxb in forum Vitalize
    Replies: 10
    Last Post: 5th June 2008, 09:18 PM
  5. Clearing the Clipboard
    By Dines in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th June 2007, 12:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •