Needsome help with a program

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 am working on a game that will; have the player putting a newspaper together.

    What I am, attempting is this

    The player can click on various objects, Police Scanner, Fax Machine. Computer. and Printer.

    When they do a list of stories will come up/

    When they click on the story they want. it will move to the listing of the news stories.

    When they player gets five stories, the icon turns into a newscopy. and gets sent to the editor.

    I got as far as bringing up the computer, fax machine. printer , and police scanner.

    And that is all I have.

    How do I store the various stories,

    How do I make different ones show up when the player clicks on the device

    how do I get them displayed,

    how to I get them transfered from the source to to the newscopy.

    Thank you

  • Hey DisneyRob,

    your game description is - at least for me - quite vague.

    Try to explain better what your goals are. Or, better, write a pseudo-code for it and run it on a piece of paper.

    Once you have the logic working, then you may translate it in Fusion, or ask here.

    By the way, you could save and load your data using .ini files. There is an object or an extension for that, check it out.

    And you may use List objects to store your items or stories.

    Start with small tasks first.

    Take care,

    Sergio

  • Thanks Sergio

    Here is what I am trying to do in detail

    The player enters his office

    In his office he has a police scanner, a computer, a fax machine, and a teletype machine


    I he clicks on one of these machines, (lets use the computer) a computer screen appears with four news stories on it,

    He clicks on story #2 for example

    That story appears on another piece of paper as story #1

    Then he clicks on the fax machine (example)

    A graphic of fax paper comes up with four more stories

    The player clicks on a second story, the paper reappears and now there are two stories. the first and second

    The process repeats until he has four stories.

    After the fourth story is placed.the cursor turns to a newspaper. and he clicks it on the door of his office. And it is sent to the editor.


    I have gotten this far. I have the office. and when the player clicks on a device the graphic of the paper comes up.

    How do i get the variable strings to appear, and how do I transfer them to the "master copy" that will be sent to the editor.

    I kind of think it has something to do with the INI object, but I do no know how to use it.

    Thanks

  • Each device (fax machine, printer) and story is its own active object with its own values.

    You will also have global values that store the information to manage the game globally. You don't need to use an ini file yet (you only need it when you want to save the game for the player to stop playing and resume the game next time).


    Each object is its own active. It can have its own variables - referred to as alterable values - or flags. Once a player has clicked on it you set a value to indicate it's been clicked.

    You then test for the value and execute your code based on the value.


    For example, if a player must click on a fax machine four times for four stories:

    Create a value and name it: number of clicks and set it to zero.

    Player clicks on the fax machine, add 1 to the number of clicks.

    If the number of clicks = 1, show 1 story, show a string.

    If the number of clicks = 2, show 2 stories, change the string's text and so on.


    If a player can clicks on any of the devices a combined total of 4 times use global values.

    The process is the same, except this time you have a global value named number of clicks, and every time the player clicks on a device, add 1.

    Test for the global value to equal a certain number and execute some code (remember to limit this so it only runs once).


    For example, number of stories = 3, and the player clicks on a story, then add 1 and now stories = 4.

    When stories = 4, you can change your game to show an animation of a master copy being sent to an editor, or you change the string to say "Master Copy".


    If you need more help, please add comments into your .mfa and post it here. It's easier for us to amend your .mfa to do what you're asking, than to create an example from scratch.

    Casual games: Please login to see this link.

  • Thank you for the help.

    A lot of questions have been answered.

    The only thing I am still having trouble with is creating a "database" for lack of a better word to store the various stories that will appear on the various machines/\

    Thank you

  • Finally got it to work the way I wanted it to work

    However another issue arose.

    How can I let MMF know there is an entry in a text box


    What I want is that when the player clicks on a story it enters the first text box.

    Then I want the next time they click on a story, it goes to the second text box, then the third. fourth, and finally the fifth.

    I was looking for a condition that says there is data in the text box. Can not find anything

    Thanks

  • If you mean selection, you want the Focus action.

    Please login to see this attachment.

    If you mean whether it has text currently:

    Please login to see this attachment.

    Please login to see this attachment.

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • You can set a global value. For example, story control = 1, show edit box 1, set story control = 2, etc.

    If you want to check that the player has actually entered text you can set the contents of the edit box to a string and then test if the string is empty.

    For example:

    Player marker 2 = the object the player will click on

    Name2 is the string.


    Then:

    Code
     Name2 = ""
     Set story control back to 1 because the player didn't type in anything.

    Casual games: Please login to see this link.

Participate now!

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