Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Button Mashing

Hello all!

I've recently joined a team ( http://www.rmxp.org/forums/index.php?topic=28620.0 )and in the first main dungeon we need a button mashing game where you have fallen, to get back up you need to tap the Left and Right buttons until the hero has gotten out of the hole. We have tried to do this with events but we have had no success.

Any help at all is appreciated.
 
So you want something where the Left button makes his left hand go up and the right button make the right hand go up so he can climb out of a hole?

Anyway, It is all switches. Just make an Auto Run Event that a switch activates it unless the hole is a totally different map. On the Same event make another page. On the first page, Make it switch on a switch( I will call it Switch: Left). After that, make Self Switch A turn on.

On the second page, Go to the top left hand corner and switch the Conditions on Self Switch to A. In the Event itself, Make a C-Branch that checks if Switch: Left is on. Inside of that, Make another C-branch that checks "If Button 'Left' is pressed." Inside that, put a "Move Up" or whatever inside of it and turn "Switch: Right" on and then turn "Switch: Left" off.

Do the same thing for the Right but switch everything that says "Left" for "Right" and vice versa
 

Jason

Awesome Bro

This could be done with events you know, and even show pictures of left and right:

@ = Optional
Code:
Loop
@ Show picture LEFT
Conditional Branch - Left is pressed
@ Remove picture LEFT
@ Show picture RIGHT
Conditional Branch - Right is pressed
Variable LEFT+RIGHT +1
Conditional Branch - If Variable LEFT+RIGHT = x (Choose)
Break Loop
Self Switch A = ON (Or whatever happens)
Repeat above
Is that easy enough to follow ?
 
jbrist":1hx5qhjn said:
Code:
Loop
@ Show picture LEFT
Conditional Branch - Left is pressed
@ Remove picture LEFT
@ Show picture RIGHT
Conditional Branch - Right is pressed
Variable LEFT+RIGHT +1
Conditional Branch - If Variable LEFT+RIGHT = x (Choose)
Break Loop
Self Switch A = ON (Or whatever happens)
Repeat above
Is that easy enough to follow ?

The first command, "@>Show Picture Left" should be outside the Loop. You kind of messed up the coding for the "Conditional Branch: Right is Pressed." Also, if you just mash or even hold "Left" it will produce the same effects. You could use a different self-switch, switch, or variable in the coding to make it cleaner. (Like if switch 1 is on and you press left, turn switch 1 off; if switch 1 is off and you press right, turn switch 1 on again.)
 

Nachos

Sponsor

I did that to open a dorr, but with no animation..

it would be something like

Code:
@Conditional Branch - Left is pressed
 Control variables= 001-Up1
  Erase picture: 02.Right
   Show picture: 01.Left
    Move player: TROUGHT ON
                       Up
@Conditional Branch - Right is pressed
 Control variables= 001-Up1
  Erase picture: 01.Left
   Show picture: 02.Right
    Move player: TROUGHT ON
                       Up
@Conditional branch: Variable 002.Tall == 50
   Show text: \C[3]You did it!

Try it.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top