RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[Resolved]Quick Time Events

0 Members and 1 Guest are viewing this topic.

***
herp derp
Rep:
Level 81
Newclear Bomb
Hey I am new here, so hello first, now onto my question. I use RMXP and Im wondering if somehow, someway, you can create those events where something flashes up on the screen telling you to press a certain button and if you dont press it in a certain amount of time you die or get hurt. If youve ever played something like God of War you know what I mean. So yeah is there anyway to do this, maybe a script? Thanks
« Last Edit: May 01, 2010, 02:40:24 AM by DylansGamez »

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Randomizer - GIAW 11Gold - GIAW 11 (Hard)Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Programming)2012 Best RPG Maker User (Mapping)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Kindest Member2011 Best Veteran2010 Most Deserving Of A Promotion2010 Best RPG Maker User (Technical)
Actually, you can do this fairly easily all with events. Show a picture of what the player needs to do with the show picture command. Then, do a loop. In this loop, have a conditional branch for if the button you want them to press is being pressed or not. If it is being pressed, break the loop, erase the picture, and do whatever happens next. If not (in the else section), have a new variable named Timer or something get 1 added to it. After that variable, have a conditional branch check if that variable equals however long it takes for the player to fail the event. You'll need to experiment for how long that number is. Anyways, in that conditional branch, have then what will happen if the player fails, erase the picture, and break the loop.

Ex:

-Show Picture
-Loop
     -Conditional Branch: If X is being pressed
            -Show Text: Tada!
            -Erase Picture
            -Control Variable: Timer = 0
            -Break Loop
     -Else
            -Control Variable: Timer + 1
            -Conditional Branch: If Timer is equal to or more than 100
                  -Show Text: You failed!
                  -Erase Picture
                  -Control Variable: Timer = 0
                  -Break Loop
            -End Branch
     -End Branch
-Repeat Above

That should work, though I've not tested it myself yet.
« Last Edit: May 01, 2010, 01:12:13 AM by Zylos »




*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
Dammit, Zylos beat me to it -.-

But before you control the variable called timer, make a wait command of one frame. Then make your variable around 60 for 1 second, 120 for 2 seconds, etc. I tried doing it without the wait command, and the computer just looped through too fast.

And I use labels, not loops. But whatever works.

***
herp derp
Rep:
Level 81
Newclear Bomb
It didnt work. Or perhaps i did it wrong. Anway heres the event:

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Randomizer - GIAW 11Gold - GIAW 11 (Hard)Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Programming)2012 Best RPG Maker User (Mapping)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Kindest Member2011 Best Veteran2010 Most Deserving Of A Promotion2010 Best RPG Maker User (Technical)
Does it play the animation there after a short amount of time? It won't play the victory thing because you've got it breaking the loop before it's erased the picture or saying IWON.




***
herp derp
Rep:
Level 81
Newclear Bomb
I just switched the break loop thing to after the picture erase and IWON but it still doesnt work. It doesnt even show the picture and i know ive got the coordinates right. I think this is more complex than it may seem

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Randomizer - GIAW 11Gold - GIAW 11 (Hard)Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Programming)2012 Best RPG Maker User (Mapping)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Kindest Member2011 Best Veteran2010 Most Deserving Of A Promotion2010 Best RPG Maker User (Technical)
If it's not showing the picture, it means the event likely isn't even activated yet. Set it to parallel process, with an erase event command afterward for right now just to test it.




***
herp derp
Rep:
Level 81
Newclear Bomb
Just set to Parallel process and added Erase Event at the end...this time the sprite didnt even appear and nothing happened except for the animation noise being heard

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Randomizer - GIAW 11Gold - GIAW 11 (Hard)Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Programming)2012 Best RPG Maker User (Mapping)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Kindest Member2011 Best Veteran2010 Most Deserving Of A Promotion2010 Best RPG Maker User (Technical)
Then it's actually going way too fast. Add in the wait command like Cozziekuns said, right before the adding 1 to your variable.




***
herp derp
Rep:
Level 81
Newclear Bomb
Ok now its actually showing the picture and giving me time but still no matter how many times i press A it just ends up with me getting hit

*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
Ok now its actually showing the picture and giving me time but still no matter how many times i press A it just ends up with me getting hit

I'm assuming your pressing the "A" button on the keyboard, no?

For XP:

SPACE, ENTER, or C is C
Esc, Ins, or X is B
Shift or Z is A
V, Q or Page Up is L
B, W or Page Down is R
A is X
S is Y
D is Z

So you need to be pressing Shift or Z.

***
herp derp
Rep:
Level 81
Newclear Bomb
Heh. it worked. Its finally done. Thanks for helping me with this Zylos and Cozziekuns. Musch appreciated  :)

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Randomizer - GIAW 11Gold - GIAW 11 (Hard)Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Programming)2012 Best RPG Maker User (Mapping)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Kindest Member2011 Best Veteran2010 Most Deserving Of A Promotion2010 Best RPG Maker User (Technical)


Glad you got what you needed. Mind editing your topic title to have [Resolved] added to it now?




*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
Glad I could help, though it was mostly Zylos.