User Tag List

Results 1 to 5 of 5

Thread: Saving game level in Android in 2021

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Aug 2019
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Saving game level in Android in 2021

    Hi guys,

    All of my games have different levels. I want to save the user's progress in Android using the latest techniques with minimal permissions from the user as possible.
    So far I have been using a simple INI file with one variable in it (LEVEL_REACHED) that gets updated after each level in the external directory ("ExternalStorageDirectory$( "Android object" ) + "/" + "savegame*****.ini"")

    How should I do it now in 2021? I have updated to 293.6

  2. #2
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    646
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Don't use external directory. Data Storage is more secure and doesn't require any permission.
    DataStorageDirectory$( "Android object" ) + "/savegame*****.ini"

    If you will only use a single ini, you don't even need to write the path, on the "Ini Name" just put the name (for example: savegame*****.ini)
    If you need to check for the file, use the expression I showed above.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Aug 2019
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much!

  4. #4
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    646
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    No problem, I've created my first full mobile game these days, had to tackle with that

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,179
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    Keep in mind if you change it now - all of your existing users will lose their saved game data, unless you first retrieve it from the old save directory, and resave it in the new save directory, the first time they run the update.

Similar Threads

  1. Replies: 0
    Last Post: 14th June 2018, 10:58 PM
  2. Android game level system
    By nyme in forum Fusion 2.5
    Replies: 33
    Last Post: 12th August 2015, 03:04 PM
  3. Cross saving game between platforms (iOS / Android)
    By paobrasil in forum Fusion 2.5
    Replies: 2
    Last Post: 31st May 2015, 02:13 PM
  4. Simple level editor with saving and loading
    By Konidias in forum File Archive
    Replies: 30
    Last Post: 8th June 2012, 07:37 AM
  5. Saving/editing/loading a large level, server-side.
    By SergeantBiscuits in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 23rd March 2012, 04: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
  •