#Number of sentences

1 messages · Page 1 of 1 (latest)

jovial flicker
#

Number of sentences would be sentences.Length

#

and it won't work as an else if, it needs to be if (Input.GetKeyDown(KeyCode.Space) && page < sentences.Length)

#

or check inside the if to set the alpha to 0

#
if (Input.GetKeyDown(KeyCode.Space))
{
    if (page < sentences.Length)
    {
        asa.alpha = 1;
        dialogue.text = sentences[page];
        page++;
    }
    else
    {
        asa.alpha = 0;
    }
}
thorn ore
#

ohh i see

#

thank you