lionz's Forum Posts

  • Could try condition 'object 2 is visible' with the 'mouse is over object 2' condition, so both need to be true

  • Your mouse cursor over object#2 can still be true if the object is invisible

  • I don't think you can pick and choose, it will reset all. Better way would be to just set them on restart and then you can ignore the game entry variable.

  • Depending on how you're actually displaying your text, this may or may not help. But to apply formatting in my dialogue system, I run the strings through a formatting function. (I believe it was actually Kyatric that came up with this method.)

    So any BB Code or line breaks are written into the JSON file (using round brackets where applicable), then the function replaces that with the correct BB Code tags.

    I talk about it in this tutorial, and there should be a project file attached.

    Thanks for sharing this, that is an interesting way of looking at it. I still find it strange how the text object which allows BB code makes use of b for bold but doesn't seem to support br for line break, it would be much easier!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What specifically do you mean by PlayCounter?

  • Ok we are waiting I guess :P

  • Ideally you should be able to use the BB code so [br][/br] but this doesn't seem to work so we can see if anyone else has an idea on this.

  • Yeah I can't work it out with JSON because it doesn't use the command but thinks of it all as text. If you use set text from array then you can make use of newline. So looks like the split out will work best, good luck :)

  • Ah right if you set the array value it works but if you load from JSON it doesn't I guess you could try the array.at(0,0)&newline&array.at(0,1) and split out the text in this way. Can't think right now how I would get that work with JSON, converting to str doesn't do it.

  • That would work too if its appropriate to the game in some way, but what I mean here is you set the array at 0,0 to the literal entry of "It would be nice to have a line break here"&newline&"but as you can see.." then when you set text to array at 0,0 it would have the line break.

  • Not totally sure what's happening here but the score resets to 3 because of some events where you say if object is outside of layout add 1 to score. I guess it skips these events when you first go in.

  • It's up to you to remember the login and password, not sure how we can help with that..

  • Set array value to "text"&newline&"moretext"

  • If it's always on object clicked then you can use mouse is over object and mouse button is down, set object to mouse.x. When you release mouse button it won't be true so will release the object.

  • Variable looks alright if you check it in debug mode, the issue is setting the text, you can use set text all the time so it's always showing the correct variable rather than in a trigger once. If that doesn't work you'll have to share the new file.