guannstar's Forum Posts

  • dop2000 That's what I did, and it worked, but didn't, because now, with 'on set text' code, it only shows/Gets the very first key in the list, and it doesn't show the information inputted into keys after that.

  • Okay, thanks, So, change the action... one question though... What should the expression look like?

  • This is what my code looks like, so far...

    https://www.dropbox.com/s/lunled2dq8zp8qb/CODE.JPG?dl=0

  • Bump.

  • Hello all. I'd like to know how do I get my p12 certificate with new version of xcode (version 9.2)? I can't find any good tutorials out there... This shatter-box tutorial is outdated. Everything was still relevant, except for the final "p12" section of the tutorial. The "View Details" button is gone.

    Thanks in advance.

  • Hi everyone! Hi when comes to Lists, how do you get the newest key to stay at the top of a dropdown list, rather than move to the bottom?

  • oosyrag, can you give me a hint on where to look on the List manual page? Am I supposed to use the, 'Set item text' action?

  • Wow, again! Thank you SO MUCH oosyrag! You could not have been more helpful. May a thousand blessing be upon you!

  • Thanks I understand. I changed it back to "on clicked" though.

    ... So now do I just need to save my Dictionary into a JSON file, and then link JSON file with firebase? Is that right? Lastly, is it possible to get the newest message/key to stay at the top, rather than move to the bottom... Can I change that?

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.