Need help with blitting with string (and expression format help)

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I'm having an issue, if not, few issues with the experiment that I'm trying to get it to work which involves blitting text and changing from one paragraph to another.
    I am trying to make a visual novel scene with text. Pretty simple, at least that's what I think. I thought I want to give text blitting a shot and hey, it has potential and it could work. I found that I can use strings with paragraphs to write with.

    At least as far as I've experimented, I ran into a difficult issue, if not, a situation that came out of the left field to me and I do not think this part is well documented, more on that.

    I'm using C.B's tutorial on Text Blitting and I wanted to make some modifications which involves a string. Here's how it'll work:

    • The player presses the space key once the first paragraph is finished.
    • Whatever it is written should disappear and be replaced with the new paragraph.
    • Then the text blitters a new paragraph until it is done, repeat.

    Now I'm used to Fusion for months now and I'm still learning. This has been bugging me over the past day and I'm feeling stuck. I did find one possible solution, but this part is what doesn't make sense to me. When I want to retrieve aCurrent number of paragraph displayed, it tells me to "Enter a text expression". What expression? I don't know if this was explained in depth besides the simple explanation. It would help me a lot if I could get an idea of a example to make sense of this.

    Or maybe if you guys have any alternative ideas, I'm more than welcome to hear. Oh and before you say this has been brought up before, yes I've already searched up for similar answers, but this one is different. I hope what I said make sense, I'm still new to this Fusion lingo. :P

    Thank you for your time! :)

    EDIT: Here's the file regarding the issue.

  • Hello Dumdodoor,

    if you could upload what you have so far
    (the blitter part you are using, taken from Chris Burrows example(s)?)
    I'm sure it would speed up the process of getting help
    and only if (unlikely) that's not usable for your needs we would think of something from scratch

    It's surely something that can be done,
    but solution is different depending on the tools/features you are using

    a selection of my Fusion examples can be found Please login to see this link.

  • Hi Dumdodoor,

    here's just a slight modification, you were almost there:

    Please login to see this attachment.

    you can directly retrieve the currently displayed text with "String$"
    which is the most direct and solid solution

    You were probably entering:

    paragraph( "String" )

    which gives you the "number" (index) of currently displayed paragraph
    but the expression editor asked you for a string, not a number
    and so you need to address the paragraph string of that paragraph number:

    paragraph$( "String", paragraph( "String" ) )

    but since paragraphs have 0-index
    (while "paragraph" looks to give their description > has 1 index)
    you would need to do:

    paragraph$( "String", paragraph( "String" ) -1 )

    a selection of my Fusion examples can be found Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!