User Tag List

Results 1 to 6 of 6

Thread: Just a Question

  1. #1
    No Products Registered

    Join Date
    Aug 2008
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Just a Question

    I'm wondering: How do I set up the game so I can't go to a certain level if the level link is invisible? In one game I made, I had the character collect objects to set the global value at a certain amount, which would render the instructions "double click the right mouse button to enter the level" appear, but that won't work for 10 levels in what is meant to be a simple game. Help, anyone?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a Question

    Ok, here's a rough guide on how to use the iniobject to accomplish this.

    1: learn how to use the ini file

    2: the structure of the inifile should be like this

    [levels]
    level 1:
    password: bla

    level 2:
    password: blabla

    etc..

    3: When a level is completed the information about the next level is added

    So the first time the game is played, the inifile will be empty.
    When level 1 is done, the inifile will contain information about level 1. Etc..

    4: On the level loading screen, check each level and password. If they match, open access to the corresponding level. Each level could be displayed as text, an active object, a miniscreenshot, etc... so these should only be visible or clickable if their the correct password is in the inifile.


    This is not helpful for you if you don't know how to use the inifile. You'll find a tutorial on how to use it in the tutorials section of the forum. And yes, I wrote that tutorial

  3. #3
    No Products Registered

    Join Date
    Aug 2008
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a Question

    Thanks. Now I need to learn about the Inifile.

  4. #4
    No Products Registered

    Join Date
    Sep 2008
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a Question

    Just a personal thing, but I would use the EasyXML object instead of the INI object.

    You can format the data inside of an XML file better.

    Either one would work.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a Question

    Quote Originally Posted by Popcorn
    [levels]
    level 1:
    password: bla

    level 2:
    password: blabla
    That'd be

    [levels]
    level 1=
    password=bla

    level 2=
    password=blabla

  6. #6
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a Question

    : or =

    They both make up

    : ) =)

    SMILEYS!


    Popcorn, the same guy that replied earlier posted this tutorial: http://www.clickteam.com/eng/resources/ini_tutorial.pdf

Posting Permissions

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