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 have a problem with set a global value from ini.

    on start of frame i want to set a global value to the value in the ini.
    on the first run of the game the global value should be "1", ( i have set the global value to "1" )
    on start of frame it loads the empty ini file, so that the global value is not "1"

    i hope you understand what i mean. how can i do this ?

  • Not sure if I get this right, let's see.

    I'd check if the value is 0, which means the game is launched for the first time. Then set the value to 1 before switching to the game frames. You may consider using "Run this event once" instead of start of frame, just to be on the safe side.

    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

  • In my apps I check to see if the .ini exists. If yes, I load the values I need. If no, I create an .ini to be used setting values.

    Pseudo code:
    If sfx = "On" then do ...
    If sfx = "" then create .ini, set sfx ="On"

  • At the current time there is no way to detect if a file exist. You should in your INI file store some value you can check during runtime.

    For example store the value: "IniExist" to be equal "1" or similar. At the start of your app you can load the ini file and check if the variable "IniExist" is equal to 1. If not you initialize the ini file with the default data for you app.

    A better way would be to include the INI file as a binary file. If the INI file isn't created yet the iOS runtime will load the INI file from the binary files. When saved it will store it in the App's private documents folder and use that in the future. The iOS runtime only looks for files in the embedded binary files if no other file is found with that filename.

    Please login to see this picture. Please login to see this link. - Please login to see this picture.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!