Dialogue system that I've made stopped working

Get help using Construct 2

Post » Tue Jan 19, 2016 12:15 am

I've made a dialogue system for my game and it was working pretty well until I messed something up. I've just added "if talk = 3" expression and now it's broke for some reason. I can't find any problem in events, maybe you can help me, please?
Posts: 20
Reputation: 266

Post » Tue Jan 19, 2016 5:01 pm

This is the classic example of JavaScript asynchronicity.

All of your "global" events (i.e. anything not subsidiary to another event) is executed once per tick. Your variable 'talk' cannot be 1, 2, and 3 at the same time, but that is how you are telling Construct to interpret it presently.

You need to put those events together using the "Else" statement, otherwise you will continue to get those crazy logical errors. If "Else" doesn't work then you need to put some other condition in there to make your conditions adequately unique as to trigger independently of one another.
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
Posts: 1,419
Reputation: 4,867

Return to How do I....?

Who is online

Users browsing this forum: blackhornet, inozz, sebrosen, TheMob000, vubidugil and 6 guests