Button Press for Conditional Branches Problems

● ARCHIVED · READ-ONLY
Started by catastrophiccynical 5 posts View original ↗
  1. Hello anyone who can help me with the problem!


    Ok, so I am currently working on a game and I have come across a problem that I am sticking a pin into for now to work on when I have a solution. In my game, you play as a fellow who gets relationship levels based one what he does. I tried to set up a dialog box/text box that would appear once I pressed the letter key "R". I did some searching once I found that to not work and set it so that the condition was on a parallel process that looped constantly to find the key press. This hasn't worked for me either but has posed a bigger problem when in use! My screen will be black on the maps that I have placed the process! If my explaination doesn't make sense, I have a picture of my event here...

    Spoiler
    event1.PNGevent2.PNGevent 3.PNG







    Now, the things I have done...


    I have done this without using a loop before on parallel process and I attempted it on auto run (for both what I have above and without a loop)...


    If someone could instruct me on a better way to do this, it would be highly appreciated. As of now, I'm not looking for a swift answer as what I am working on is not going to play a part in the game for at least another few days worth of working.


    Many thanks to those who help!
  2. The :R key is :W on your keyboard by default and using a loop within a parallel process is redundant (at least in the way that you're using them).
  3. Try removing Loop, keeping the rest of eventing as is.


    Just put the conditional brances on parallel proccess.


    Loop makes it an infinite loop inside parallel proccess.


    Parallel proccess is running at least 30 times per second.


    Thus things evented on parallel process repeat anyway.
  4. I can offer a different Solution.


    Just insert Eventcommand Wait 1Frame.


    Because without the 1 Frame wait you create an invinite Loop which crashes the Game.


    Not using the Loop inside that Event causes the bug that the button not always triggers,


    thats because Eventpages are NOT reexecuted every frame. So you discovered the solution for that Bug for yourself without stumbling upon it :) Well Done.


    Edit: Autorun is the same as Paralell, but with autorun the player cant move and the mapscreen gets visible after map enter before it starts executing.


    Its ment for cutscenes.
  5. OMG! Thank you everyone you've helped a bunch! Now I can actually do things in my game!! All the love for you three!! <3