I have a problem with dialogs, basically I need a system where I can press the next button and it will switch to the next dialog, also with a previous button it switches to the previous dialog. I know I could do this in a really lazy way but I would like to shorten the process as much as possible. So have a array of dialogs and I switch through these by clicking the dialog item buttons. Or is there there a faster way to do this?
You will have to do something like this:
Event: Dialog item clicked
Action: (if then else statement) IF used dialog item = Item in your first dialog
Then hide (name of current dialog)
Show (name of next dialog you want to show.
Hi
I have a problem with dialogs, basically I need a system where I can press the next button and it will switch to the next dialog, also with a previous button it switches to the previous dialog. I know I could do this in a really lazy way but I would like to shorten the process as much as possible. So have a array of dialogs and I switch through these by clicking the dialog item buttons. Or is there there a faster way to do this?
thanks
@farban6: Go
You will have to do something like this:
Event: Dialog item clicked
Action: (if then else statement) IF used dialog item = Item in your first dialog
Then hide (name of current dialog)
Show (name of next dialog you want to show.
Do that for all the dialogs you want to show
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
Yeah I think thats the approach im going to take, but i was wondering if there a better way? Rather then having a massive list of IF ELSE statements.
@farban6: Go
hmm. I'm not sure if there is. that's the only way I know.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
Of course you can use loops for this too.
Like save Dialogs and Buttons on arrays [0-10 for example]
Then use loop like
pick each integer from 0-10
if used dialog item is ButtonNext[picked integer] -> Hide Dialog[picked integer] -> Show Dialog[picked integer + 1]
@zenx1: Go
Ahh nice idea, how do I get the + 1 in the array key?
@farban6: Go
"Arithmetic (Integer)"
thanks got it !