lionz's Forum Posts

  • You could have logic that tries to go between two different layouts constantly or keeps refreshing the layout. Or if you messed with timescale then it's stuck at 0. If it's not that I dunno, share the project.

  • It's just set variable to 'LayoutName'

  • Nope, you pass through a parameter which triggers the 'for' loop you want to use. So pass through 'fr' and then say if param=fr run that loop, if param=en run different loop.

  • Get rid of the group variable conditions and use global variables for each character, set text1 to char1 variable and text2 to char2 variable, something like this.

  • Please share the logic you used to add it to one location and to work out how the player is able to move to next square, I guess it is best to build on that.

  • Because you keep changing character variable and the above groups variables are true so it sets all the text to same name.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My example has several lines in one cell like how you described. For tokenat you just need the text so that will be the array position. Work out how you are changing the array position, array.at(x,y) is what you need. In my example I pull the row from an instance variable on the NPC. I don't see why that would be different.

    tokenat(text,index,separator) is what you need. The index to move across the string is the chatpos variable. The separator is the underscore. You should have all you need really. For choices I hardcoded it to certain rows, so you can do that with list item, if list item 1 is picked then use this row of the array, i.e. set a variable to that row for array.at(var).

    Look at how I change the Y variable based on text object clicked, you would do that with list item instead, that's probably the only change from my example. If you don't want to set it on the NPC (I was doing this to track it better for bugs), you set the dialogue directly in the list object instead of the NPC.

  • I don't understand the question because I didn't use your list object. Try and understand my example, see if you can relate it to the list.

  • Where are the event for saving the avatar? Whatever you are saving try using a global variable. If you can't fix it, better share the file so we can take a look.

  • If you saved the local storage data in the settings layout, then when you check them on start of game layout really it should pull the saved data, assuming you mean that data shown like 'name' 'password'. So you are not saving in settings?

  • So is it 1 or 3? Its up to you to add the conditions that the actions must meet. If it's 1 then add 1 condition. Also for future careful responding to your own post as it gets removed from unanswered topics and people may miss it.

  • When you say the game is loaded before the settings, aren't the settings part of the game? Why are they separate? Please add screenshots, show us what you mean.

  • You replace NPC.dialogue with array.at(0,global_number), the first element in the tokenat() is the text you want to use.

  • You have to press the arrow on the left to open the event block. If you see the arrows it is a sign that there are sub events below but the block was closed.

  • FYI you can check variables in debug preview, you will see the boolean changing between 0 and 1.