384e7ffa-378f-4fac-bea6-0bb48725f387's Forum Posts

  • 9 posts
  • - here is a quick sample... I am not sure how I would approach it without arrays - Dictionary is a good idea too, very similar to an array, but maybe a little less confusing. You have to store the stories in something, and if you want lots of them it could get messy...

    https://www.rieperts.com/games/forum/StoryList.capx

    Thank you! The saving worked! I now have one final question, what do i do if i want to delete one of the stories?

  • is your plan to store the stories on a server so different devices can access them, or store them in local storage (so only the device that created a story can see it?

    and how long are the stories? are they going to be copy and pasted from other sources? If you want any text formatting it get a lot more complicated...

    Plinkie was suggesting using an Array to store the stories in. Which is a good idea, and makes saving to local storage easier. But the code is tricky to follow for people who have never used arrays before...

    Firstly, i want to store it locally (local storage)

    also, the stories are self written in the textbox. It's kinda part of the project.

    And lastly, i have never really used arrays before, but i actually hope i don't have to here.

  • just to clarify, i want to be able to make as many stories as possible. so when i use a global variable, i will have to make as many variables as the maximum amount of stories. this is not what i want. If there is another way with a global variable to still make it work, i'd really like to know.

    so just to summarize, i simply want to know how to copy the contents of a textbox on "layout 1" to a list in "layout 2". And this should be possible as many times in a row as you'd like. so the list could have infinite stories in it.

    btw, i don't really understand what you mean.

  • So I'm making this program in which you can write stories. In this program i have a couple of layouts. the one I'm going to be talking about are a layout where you can create the stories, and a layout where you can browse through the already made stories. In the layout where you can create the stories there is a textbox where you can input the title (this is what would be visible in the list on the browsescreen), a textbox in which the story can be written and a save button, that is supposed to upload the title to the list on the browse layout. (btw, the story is saved the same way to an invisible list on the browselayout).

    The problem I have is:

    I can't seem to figure out how to make a story (or title) you created appear on the browsescreenlist.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you! It helped out a lot!

  • For a project and in general, i'd like to know if there's a way you could check if a certain string has a specific character in s specific position. For example if you want to know if the string starts with an "H", or if the third character is a "c".

    Can someone please help me with this?

    Thanks in advance.

  • Thx it worked!!!

  • I want to add a feature to my game where you have to hold the escape button for a while to exit the game. Kind of just like in Undertale. But i don't know how to make the action (close the game) only happen when i pressed the button for a certain time.

    Can i get some help on this?

  • 9 posts