Grimm's Recent Forum Activity

  • Thanks for the help!

    Both systems work and i'am sure i can use this knowledge in some advanced scripts.

    I never thought that even branching that seems so easy and simple like this example can become complicated

    I'am a bit ashamed of my self that i could not figure it out by my self. The "If - Else" script reminds me heavily on the old text rpg's i used to write in Qbasic ages ago

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I would postes my events, but i can't post attachments in this forums. So i can't even post a screenshot.

    But my events are really simple, there are only 3 of them:

    1: On clicked Button:

      a.Write Text b. Button.Set"ChoiceA" to 0

    2. On clicked Button:

    Value "ChoiceA" equal to 0

      a.Write second Text b.Button.Set"ChoiceA" to 1

    3. On clicked Button:

    Value"ChoiceA" equal to 1

      a.Write third Text

    Thats all. I tested if reseting the private variable to 0 does anything, like you suggested, but unfortunately there was no effect.

    I see the problem. The programm executes all variable actions at one click. The message get displayed but only for a few milliseconds and then construct proceeds to the last one. The event chain does not wait for an input. It changes the variables on the first click on the button. I don't know why cause as you can see i told the program to change the value AFTER each click on the button.

  • Hi,

    Currently i'am trying to script a simple dialogue tree. I know there is an example for dialogues using hash tables and text files but i want so write it down from scratch to understand the machanics.

    Basically it should be simple, but i can't get it to work, maybe someone of you can give me a hint what i'am doing wrong.

    Its starts with a simple message, the player can choose between two options (Yes/No). If the player klicks on the yes button i change a private variable of the button to 1(lets name it ChoiceA) and displays a second message, again with two options.

    The "Yes" button is now set to ChoiceA=1. I include a condition to check if ChoiceA equals 1, and if this condition is true and the "Yes" button is clicked again, a third message should appear.

    But my problem is, that if i click on the Button during the first message, the programm jumps automatically to the third message. So the second message never got displayed.

    Anyone of you have a idea what i'am doing wrong?

Grimm's avatar

Grimm

Member since 24 Nov, 2010

None one is following Grimm yet!

Trophy Case

  • 14-Year Club

Progress

14/44
How to earn trophies