How do I trigger once ?

0 favourites
  • 7 posts
From the Asset Store
Change the size and position of everything without calculating anything!
  • its been a whole while again and i cant remember how that worked.

    ive got this code :

    As you can see a typewriter function should be triggered and executed till the end once the player collides with an certain sprite.

    however it doesnt work at all , but when i choose something else like "while keyboard_key "1" is down" it works

  • See that green arrow? That means it's a trigger once. This will override the every tick you have just below it. The keyboard works because it's effectively triggering a repeated state of on and off.

    Perhaps you should use a boolean instead, and have it triggered on. Then, when it's on, run event 16.

  • See that green arrow? That means it's a trigger once. This will override the every tick you have just below it. The keyboard works because it's effectively triggering a repeated state of on and off.

    Perhaps you should use a boolean instead, and have it triggered on. Then, when it's on, run event 16.

    Thanks alot, also this means ill have a extra bool variable for every text i want to display but its something.

    Btw heres how it worked for me now :

    Also how can i check if the text is displayed completely ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just so you know, you don't ever need to use Every Tick. It's just there so people can see it. Take it out, and you'll see it makes no difference.

    Put your add 1 in the collision. Remove the bool, change the bool condition to 'If var_global_txt_counter is greater than 0'.

    Saves you a global variable.

  • Sorry, missed your last question.

    Have an invisible text object that contains the finished text. If spritefont = text.

  • Sorry, missed your last question.

    Have an invisible text object that contains the finished text. If spritefont = text.

    Lol easy ! : )

    btw , i thought about having one Spritefont in the middle of my screen to display all dialogue texts i want.

    But then , i have different objects in the game that should trigger different texts.

    howd you manage this with typewriting ?

  • by the way, thats how i managed to do it :

    its a bit messy but it brings results =

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)