Posts by MOBii

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.

    I manage to save Binary Object data:
    AAA.blx 24.0 KB
    From the old map save files:
    a Platform 01.BLm 88.0 KB
    a Platform 01.BLo 80.0 KB
    168 KB on disk

    168-24=144

    With the Binary Object I can make 144 KB (147456 bytes) smaller Map file
    100 * 100 * 2 layer = 20000 bytes

    Little strange that Array Object save the 2 map array:
    100 * 100 * 2 (layer/files) * 4 (32bit) this should be 80KB not 144KB

    Anyway I am happy I actually manage to put all the data in 1 mapfile and make it significant smaller

    Thank the. thank thee very much ouly
    I was almost giving up and go away
    I was thinking it could be solved like this but didn't know how
    When I save 255 to file it was FF so I know the number was right.

    Today I test Binary Array that in my first impression look less impressive than the Binary Object, BUT

    Only in Binary Array:
    Read -> Byte -> Unsigned SignedByte(-128 to 127)/Byte(0 to 255)


    Only in Binary Object:
    Append
    Blowfish
    MD5 signature


    I am crying here
    I want Append, but need Unsigned Byte

    How can I make the Binary Object to read unsigned char?
    if the Binary Object can't read unsigned char then I can only chose the Binary Array that don't do Append
    I can live without Append but life would be so much better with Append

    How can I save/read binary file?
    at the moment I save map into multiple CNC ARRAY files
    My data is in byte format: 0-255
    I want to save my mapdata in 8bits, not 32bits as CNC ARRAY

    I was trying to send my mapdata to a Rich Edit Object:
    IndexToChar( "ASCii", ValueAtXY( "World", XX( "OPaint" ), YY( "OPaint" ) ) )
    and save data from there, but some of the low ASCii number don't show in the Rich Edit Object.
    I can store map in a Action String but how can I save data to a file from the string?

    I don't know if its possible to convert a float and save it in the number CNC ARRAY?
    I want to save my map file to 1 file, I don't know if CNC ARRAY can save both INT and STRINGS?

    Is there an other way for me to save 0-255 binary char data to a file?

    New picture, this code execute to TRUE!

    // In old Example:
    // Space Bar is NOT pressed so it's FALSE (Until Space Bar is Pressed)
    // I use A = 1 because I want to test a TRUE statement!
    // Because the OR statement ignore the AND in this case in Clickfusion


    so the CASE is still:
    FALSE
    TRUE
    OR (logical)
    TRUE

    // in printed Code:
    // IF FALSE && TRUE || TRUE

    Normally that statement is FALSE
    but in Clickfusion that statement is TRUE


    It's a ClickFusion bug!
    It is NOT a question it's a Clickfusion BUG

    ClickFusion Statement:
    TRUE
    TRUE
    TRUE

    // in printed Code:
    IF TRUE && TRUE && TRUE

    I just state that A = 1 before it get to the line in EventEditor

    It's hard to explain when ClickFusion don't have real code

    My EventEditor Code:
    FALSE
    FALSE
    OR ( logical )
    TRUE

    Should be FALSE but it's TRUE

    FALSE && FALSE || TRUE
    Line above is FALSE NOT TRUE as the EventEditor say!

    You see the picture it's a "IF" in the EventEditor
    the code don't matter!

    This is what I don't understand
    Press "Space Bar" is FALSE until it is pressed
    TRUE statement
    OR ( logical )
    TRUE statement

    This Event should ONLY be TRUE IF "Space Bar" Is Pressed!
    This is 3 statement to be checked in the Event field in the Event Editior

    IF "Space Bar" Is Pressed && TRUE || TRUE

    Point is the Event Editor make this TRUE:
    FALSE
    FALSE
    OR ( logical )
    TRUE

    I read this as: FALSE && FALSE || TRUE
    is FALSE

    how do you do. On one level you collect banks, they are written in a global variable are moving to another level there also collect banks. And if we come back to the previous level, the banks are again on the spot. How to make so that they were already collected?

    if you like to remember what coin you already take you need store that information in an array for each coin
    and when Start of Frame you need to: if this coin NOT been taken create coin again

    CF2.5 Developer MagicDeque example
    I come across LB's page: Please login to see this link.
    and I found: MagicDeque @ Please login to see this link.
    This is a Array Extension that is the best I found so far!

    I put up this *.mfa example while learning HOWTO use MagicDeque!
    Application menu doesn't work in PFO.mfa, I dunno why? (PFO.mfa is incomplete but still working)
    So I make "PFO MDI.mfa" a MDI project of it because I know that the Application menu is working there.

    I only use Push in my example but you can use: Shift, Insert and Push
    You get a very good instruction guide to MagicDeque.

    The Array is the base of almost every program, that's why I put in extra time to learn the MagicDeque!


    PFO MDI v1.3
    Update for PFO MDI.mfa v1.3:
    Only Delete existing Elements
    Stepping in Array now update Element to Element +1
    Can close + Create new ED Window
    Attach menu option New to button


    PFO MDI v1.4
    Update for PFO MDI.mfa v1.4:
    Update value when change Element

    Next update should be search for text in Arrays, joke only...
    No don't do that it's going take hours..


    PFO MDI v1.5
    Update for PFO MDI.mfa v1.5:
    Ctrl+F for Searching value in all Element in all Arrays
    Leave value empty for list all Element in all Arrays
    This Search is a Foreach in a Foreach..
    PFO MDI.mfa and it contain MDI Child window so it's for CF 2.5 Developer only!
    F1 View Help file


    Magic v1.6
    Update for Magic v1.6:
    Change name to Magic.mfa, I was suppose learn: PowerFunction.mfx but ended up with MagicDeque.mfx
    Set back focus on In after Search
    F12 SaveAS
    Ctrl+O Open a The File Object to load an Array
    On Open Dialog - OK Set Element to last Element+1
    Please login to see this link. with many "ett" keywords for Ctrl+F
    Save Array in CSV (Comma delimited) (*.csv), that can be Loaded/Saved in Excel
    Make In bigger for bigger inputs, I learned that The Edit Object single row only can input as many char that fits.
    Make the Console stretch to the Window size
    Make a Statusbar for the Array filename
    Update Filename when SaveAs
    Change "The Common Dialog Object" to the "The File Object", I learned that the "The File Object" is much better than "The Common Dialog Object"
    Steps in Array: CLS Console and list all Element in Array
    Change layout and remove all the Labels
    Make the Drag.png not to be destroyed when window get to big
    Use timer to Maximize MDI Child Window at start
    Save Window X and Y position and with and height in Array.ini


    Magic v1.7
    Change name to Magic.mfa:
    F3 Show all last Elements and values + Last Array
    Insert Push a new Array I need to Select Array position to set E=CurrentArraySize( "Magic" )
    If A < MDSize (number of Arrays) then Push new Array, If NOT it's going to insert a new Array before last array (NOT after)!
    Alt+Del Delete active Array, If last Array jump to last Array-1
    Ctrl+R Randomize Elements
    Ctrl+I Invert Elements
    Ctrl+E Reverse Elements
    When Load file to MagicDeque it create all Loaded Arrays (No need to push new Arrays)
    the Sort function in MagicDeque is inded complete, impressive
    Ctrl+Space Copy Active Element (In) to Clipboard
    Save LastFile to Array.ini
    Ctrl+[`] Load last file store in the Array.ini
    Ctrl+BkSp Toggle Normal/Full Window (I finally learn HOWTO)
    Menu Shortcuts Ctrl+[1/0] Set no till Active Element
    Menu Shortcuts Alt+[1/0] Set no till Active Array
    Set Encryption key with data in: "In"
    If Ctrl+N all data even Encryption key is cleared!
    Save/SaveAs and Load .data with set Encryption key
    No Encryption for .csv (No point)
    Set Lastfile = Drop File from CommandLine$
    This was my last intended goal


    Magic v1.8
    Change name to MagIQ.mfa:
    Added Link (2.0) can click on a www-link to open in set web browser
    Ctrl+W Set web browser to open www-links
    Alt+W print out: Default web browser: chrome.exe
    Link (2.0) added little more purpose to the application, but still can't make D:\Clickteam Fusion Developer 2.5\CF2.5\Functions\a.data and email addresses as a 2.0 Links.
    Group Clickcode in Groups for easier overview
    a html console should be more dynamic than the The Rich Edit Object
    Alt+[Left/Right] Move Active Element
    Alt+[Up/Down] Move Active Array
    When use Ctrl+T
    Sort Elements DESC ----------------
    [1][5]="1"
    [2][5]="10"
    [3][5]="2"
    I try sort as #no but that didn't seem to work when the element is saved as strings
    Remove sound

    Array Encrypt.data Encryption Key: BLHTML.se

    Original Post:
    Please login to see this link.

    Update for Magic v1.6:
    Change name to Magic.mfa, I was suppose learn: PowerFunction.mfx but ended up with MagicDeque.mfx
    Set back focus on In after Search
    F12 SaveAS
    Ctrl+O Open a The File Object to load an Array
    On Open Dialog - OK Set Element to last Element+1
    Please login to see this link. with many "ett" keywords for Ctrl+F
    Save Array in CSV (Comma delimited) (*.csv), that can be Loaded/Saved in Excel
    Make In bigger for bigger inputs, I learned that The Edit Object single row only can input as many char that fits.
    Make the Console stretch to the Window size
    Make a Statusbar for the Array filename
    Update Filename when SaveAs
    Change "The Common Dialog Object" to the "The File Object", I learned that the "The File Object" is much better than "The Common Dialog Object"
    Steps in Array: CLS Console and list all Element in Array
    Change layout and remove all the Labels
    Make the Drag.png not to be destroyed when window get to big
    Use timer to Maximize MDI Child Window at start
    Save Window X and Y position and with and height in Array.ini