Button Press for Conditional Branches Problems

Joined
Sep 8, 2016
Messages
8
Reaction score
0
First Language
English
Primarily Uses
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...

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!
 

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
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).
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ
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.
 
Last edited by a moderator:

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
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.
 
Last edited by a moderator:
Joined
Sep 8, 2016
Messages
8
Reaction score
0
First Language
English
Primarily Uses
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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top