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.

Combo trouble

Hey, I'm doing a WASD Combo, and something is wrong.

Its like this:

Parallel Process:

Move player:
Down
Down
Down
Down

Wait for Move's Completion

Change Actor Graphic: <Guy>

Show Picture: W

Conditional Branch: The R Button is being pressed

Erase Picture: 1

Set Move Route: Player:

Down
Down
Down
Down
ect. untill 16 "Down"

Wait for Move's Completion

Change Actor Graphic 1: <Guy 2>

Else:

Wait 20 frame(s)

Set Move Route:

Down 16 Times

Wait for Move's Completion

Change Actor Graphic: <Dead Guy>

Branch End.
------------------

The Problem is, you only have like 0.01 seconds to press the W key or you fail.
You really have to button mash W to succeed in completing the combo, Where as i'd like it to give you about 2-3 Seconds to Do it. The W key cant even show or you've failed.

What am i doing wrong?

Best Regards,

Howelly123

:smile:
 
Well, there basically isn't anything there that gives you a chance to respond. It's going directly from showing the picture to checking the command. Try inserting a "wait" command between the Show Picture and the Conditional Branch.
 
I am working on this for a game at the moment, and i'm willing to share it once it's done. Just be patient.

@josh: It's not that simple, you want the player to have so long to respond to the command, but the player has to be able to do it at any time during that period of time.
 
I'm also working on fixing that. Don't worry, I've got it.

Here's the theory behind my code I'm working on: (It is evented, in case you were wondering)

[rgss] 
variable "total ticks" = 40
if the key is not down,
begin a loop
if key is down
break the loop
end
variable "ticks" += 1
if variable "ticks >= "total ticks"
jump to label "end"
end
repeat ^
end
do_something
repeat the whole process for the next key, and so on.
at the end: label = "end"
 
<span style="color:#996600;"
[/rgss]

something simple like that. I once made a fully evented combo system in VX but I lost it, and it was very buggy.
 

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