roracle's Recent Forum Activity

  • I'm very new to working with this whole text thing. I've used SpriteFont before to do intros and HUD stuff, but this is a little more complicated already.

    I think the best option would be if I could see an example of "talking" to two different "npc" objects, each saying their own thing and can be talked to separately and in any order the player chooses. That would make things a little easier. :3

  • I was going to say, just replace all DestText.Text with SpriteFont.Text (and DestText object's actions with SpriteFont object's actions) and it should work fine, but again, I'm not familiar with SF+, sorry.

    Can you describe exactly what part isn't working and maybe I can think of a workaround? Is the text not showing up at all? Do the inputs not work? Can you screenshot your events?

    As I said, I accidentally had it set to invisible, but I do have another issue that I'm not sure how to get around, and maybe it's the way I'm doing it.

    Should each dialogue be in it's own text file, or could every line of text in the game be in the same file? If all in the same file, how do I tell it when to stop displaying the text?

  • No no, I'm just a moron and had it invisible lol. No problems.

  • Okay, it works with regular SpriteFont but not with SF+? They have the exact same options and operators etc...?

  • Okay for some reason now that I've got this the way I want, I tried experimenting using SpriteFont+. It worked in the original example as I said, but it's no longer working with this method.

    It should be noted that any self respecting RPG game designer would never use system fonts but instead opt for a more custom font. Could you possibly show an example of this working in SpriteFont+ at all?

  • Final question here: for "tokenat" can I specify which line it's going to?

  • dropbox.com/s/a9vurmgzjurgxt9/textexample.PNG

    There are several ways to handle the text - I've used a simple .txt file with line breaks, and the tokenat expression with newline to break them up. You can use XML as well, or even a spreadsheet .csv and import it into an array.

    Also this one instantly completes the current line when hitting space, but let me know if you have trouble modifying it to speed up the rate of display.

    EDIT: Here is the one for speeding up - https://www.dropbox.com/s/941g2c2dkjujc ... 2.PNG?dl=0

    Your edit was perfect! Exactly what I've been trying to figure out! Thanks a million!

  • dropbox.com/s/av6kbtg32idgj7u/typewriterprogression.capx

    While I don't know how spritefont+ works, this should give you an idea for how to continue.

    I highly recommend using a project file to handle your text like I have done - load it in with AJAX. Working with significant amounts of text within C2 is a pretty miserable experience.

    Do you have this in stable release format? I've run into so many issues using Beta builds versions of C2 that I like to stick with Stable builds. Sorry for the inconvenience.

  • dropbox.com/s/av6kbtg32idgj7u/typewriterprogression.capx

    While I don't know how spritefont+ works, this should give you an idea for how to continue.

    I highly recommend using a project file to handle your text like I have done - load it in with AJAX. Working with significant amounts of text within C2 is a pretty miserable experience.

    Sprite font plus works just like sprite font.

    I'm on my way to bed but I'll check out your example when I wake up.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I might have a couple examples for you, but how are you actually loading the text? As in, if not from internal system actions (i.e, "set text"), such as a dictionary, .txt file, or array.

    I don't have a method yet because I was playing with my options. I suppose I should have also asked about best practices as well. I'm doing a big project that will have a lot of text which is already typed up and ready for production, but I'm just not sure what the best method would be.

  • I have accomplished getting the text working via Ashley's example, but using SpriteFont+ instead:

    https://www.scirra.com/forum/typewriter-text-effect_t63552

    The question is, how do I "RPG" this method? IE: How do I load text within the SpriteFont+ box, wait for user input, then continue the text? This would require a "hold button to scroll faster" and a "hold button doesn't continue text, only pressing when text is ready to scroll on" condition. Is there an example of this in action?

    To get a better understanding of what I'm talking about, play any RPG ever.

    I do have a few ideas on how to do it, but it would require multiple texts. I'm sure I could also set the text in the code itself instead of calling on pre-defined text, but I'm not sure that would be the best way to go about this.

    If anyone has an idea or maybe a forum post I haven't found, please let me know!

  • For posterity: I re-saved as a project folder and erased useless code and sprites just to be sure, and it's working now.

roracle's avatar

roracle

Member since 30 Apr, 2009

None one is following roracle yet!

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies