Magistross's Recent Forum Activity

  • I've done something like this a while back.

    This thread should cover it.

    construct.net/en/forum/game-development/game-development-design-ideas-25/simple-grid-movement-128763

  • mOOnpunk Both actions indeed work under the C2 runtime. However, I can't talk for the C3 runtime. Have you noticed any error in the console ?

  • radyan Nice, looks like my dialogue utility on steroids !

  • agouibo There seems to be some discrepencies between how the SpriteFont object measure its text between the C2 and C3 runtime.

    My template use a temporary SpriteFont object to measure single lines of text and insert line breaks accordingly so they occurs between complete words only. However, even if this temporary object is set to have a width of 5000, the C3 runtime seems to execute the "TextWidth" expression still with the default width of the SpriteFont object. Everything breaks down and no line breaks get inserted.

    A dirty workaround for this is to set the SpriteFont object's default width to 5000 or something, so the "TextWidth" expression works as it should.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is definitely something wrong with the "Dialogue_ProcessText" function last part (the one that pre-insert line breaks so word-wrapping is flawless). I suspect the "TextWidth" expression from the SpriteFont object to be the culprit...

    I'd need to debug it thoroughly by comparing behaviors from C2 and C3 runtime, but alas my free time isn't what it used to be...

  • You need to actually add the "jQuery" object. Although it's an empty object devoid of ACEs and visual representation, its presence will ensure that jQuery is present throughout the project.

  • Yeah... the utility uses a lot of shody "Execute Javascript" calls with most of them relying on the presence of the jQuery library, it came bundled with the runtime back then.

    Turn the console on and you'll see a bunch of "$ is not defined" errors as you click the import buttons.

    You could try this : construct.net/en/make-games/addons/162/jquery-plugin

    I tried for a bit and it seems to bring those dead buttons back to life !

  • The "Set character width" action should still work, and indeed it does, only not for the "space" character. It does work however if you actually map the space character, but you didn't have to previously.

  • Go ahead Mikal!

    I've noticed another weird thing, the space character has the wrong width when displayed (set character width has no effect), and it seems to affect the system ability to pre-wordwrap the text correctly.

  • This is interesting. It sounds pretty much like a bug. Local variables should be reset to their instantiation values every tick, not to 0.

    However, there's no reason NOT to set all variable to static, even more so if it corrects everything.

  • The template in general doesn't seem to work properly with the C3 runtime. I unfortunately doesn't have a C3 License and thus can't debug.

    If possible, you may want to set the project in legacy mode by using the C2 runtime, so the template works as it should.

  • I'd go for the Dragon Quest style of battle. It's easier to do all battle inputs and then process them in turn according to some kind of agility stat and other logic / randomness.

Magistross's avatar

Magistross

Member since 4 Jul, 2011

Twitter
Magistross has 14 followers

Trophy Case

  • 13-Year Club
  • Entrepreneur Sold something in the asset store
  • 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
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

20/44
How to earn trophies