My topic is not good enough to state my problem so i state it clear here:
well I want to create some story-like effect like those AVG game ...that is when you press the text area the dialogue keep going and when the dialogue reach some certain point the character (or the background) change.
I think I have done it in a stupid way, as I am really new to programming.
I have so far finished by defining the index of the table of the dialogue text (which is another lua file called chatText.lua), and I have set a function like...when pressed, i=i+1 and chattext.text = chatText.a1[i] (a1 is the chattext subtable). so when i is increasing, the text appeared keep changing.
I hope it is clear enough =-= if not, i will post those code on here.
after that, I set a function called changechar(), what it does is to change the character on the screen by trasition.to the alpha of the original character and display a new one with a new characterindex.
local characterindex = 1
local i = 0