guannstar's Recent Forum Activity

  • Sry one more thing... I noticed that I can't click on the very 1st key saved in the list (unless I write in a second key/message. Only then, can I click on and read the 1st or original message).

  • I have no idea what you're trying to do with the first two events. CData2.json is an array asJSON, and you're trying to load it into a dictionary object.

    https://www.dropbox.com/s/4xm47y1ltmy59 ... .capx?dl=0

    Here is what is happening:

    Create a new list item with the inputted name (EntryName.Text).

    Select the new list item

    Create a dictionary key with the same name as the selected list item (List.SelectedText), with contents from textbox (TripReportTextBox.Text).

    You should probably familiarize yourself with how to use expressions. Everything you are trying to do is very clearly documented in the manual.

    Thanks again So now, finally, my next step would be to save my Dictionary as JSON, and then link JSON with firebase? Is that right? I think understand more now, but yeah, you're definitely right. I need to go back and check out the manual, now.

  • Wow, After a couple of hours, I'm clearly still very confused when it comes to the naming of items on the list. This is what I did so far, but I only ended up destroying my capx, to the point that it doesn't even work anymore, but I'm trying lol... I just don't understand the process yet -- i.e. I feel very dumb right now:(

    Updated version: https://www.dropbox.com/s/bgb8x7gqwr4yt ... .capx?dl=0

  • Okay, thanks I'll try everything you said, and get back to you.

  • Dictionary.CurrentKey only works in a "For each Key" loop. If you aren't in a loop, there is no "current" key.

    So you're still missing how you want to organize and store your entries. Are you going to refer to each entry by time? date? name?

    You shouldn't update a key every time the text is changed, only when you press the save button. When you save, you want it added to a new key.

    Here is an updated capx. Each entry is incremented by 1, based on the number of items in the list, using the list.itemcount expression. You'll want to update the List - add item action to change whatever you want to name your entry.

    https://www.dropbox.com/s/0mmv7nmte4fl1 ... .capx?dl=0

    Also generally you want to avoid the tap gesture, it is not very responsive for UI purposes, it is better to use on touched object or on touch released with an is touching object condition.

    I'd like to refer to each entry by name (but don't know how).

    But wow, that cleared up a lot.

    I added this line: List -> On Clicked -> SavedTextBox -> Set Text to Dictionary.Get(List.SelectedText), and everything worked. So I get how to access the list and past messages now, but I don't now how to refer to each entry by name.

    So now, is it completely saved locally? I ask, because though it saves each session, when I close and reopen in browser, what was stored in the list, is gone/reset.

    Can I now send the entire array or dictionary object as json to a firebase/database key (which all users can access)?

    Updated App: https://www.dropbox.com/s/9zl2hvoocdhk1 ... .capx?dl=0

    ....

    I just want to say Thanks so much btw, for taking the time to help!

  • On the left textbox the user writes the clue. The right textbox the user can read past/saved clues. The save button, saves the messages written in the left textbox to the list. When you click on a specific message/item in the list, it will appear in the right textbox.... Although, I'm having a problem getting the save button to work with the list.

  • Hey oosyrag I've been trying to get it to work with a save button, but I'm still having a bit of a problem. (This capx is an updated capx). https://www.dropbox.com/s/7ypyehb6m18y9 ... .capx?dl=0

  • Hey Thanks, and sry for being so vague in my language. I did what you told me to do, but I still have a problem with the list. Could you look at it? Also, I'm not sure how to create a new key. It seems to be saving only one key/message... the very last key/message made.

    https://www.dropbox.com/s/xko3jsbwvm0w5 ... .capx?dl=0 (THIS LINK IS OLD)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I was saying that you literally did it right, but your event sheet was not linked to your layout so your event was not taking effect.

    https://www.dropbox.com/s/0mmv7nmte4fl1 ... .capx?dl=0

    As you type into the textbox, is is written into the dictionary object.

    I know. I did what you told me to do, and it worked, but I still don't understand how to load the different messages, like displaying the "keys" as clickable, or a search bar or something.

  • oosyrag I just don't get it:( I'm very confused. Please, can I get a tutorial, or capx example of how to write in a textbox, save it locally, and then load the different messages, again at a later time? Every tutorial I read and watch, never seems to show how to locally store what's written in a texbox. I'm a visual learner, and I just don't get the setup (and a few other things). Please, I really need help with this one. Not only would it help me out, but I'm sure it would also help out a lot of other confused people as well.

  • Hey Can you check out my capx? I already did that, but when pressing 'debug', to check out if the key was working, it wasn't.... I used the textbox.text expression, but I don't see it saving anything happening. Also, I don't know how to load/retrieve and read the stored data/text. Can you show me what I'm not doing, or doing wrong?

  • Bump.

guannstar's avatar

guannstar

Member since 14 May, 2013

None one is following guannstar yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies