lionz's Recent Forum Activity

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

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

  • Try Construct 3

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

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

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 73 followers

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

24/44
How to earn trophies