-
Smash bros smash
Okay well I'm working on coding a super smash brother style fighting system and I ran into a 'wall' that I can't seem to get my head around.
I need to code it so that if X and right are pressed at the same time it does a smash
The problem is if I code it like I have now they have to be pressed at EXACTLY the same time which is really really hard to do, I need to make it so that they are both pressed at very similar times they do a smash
Keeping in mind that there is also an attack coded that if right is held in and x is pressed it does an attack.
If anyone could help that would be a big help haha
Thanks!!
-
Re: Smash bros smash
I have an idea.
Run once every time conditions loops.
+X is Held Down
+Right is Held Down
-Do Smash
This way you don't have to press both buttons at the exact same milisecond and it only happens once.
-
Re: Smash bros smash
Can I just add that making a Super Smash Bros game in MMF is not ideal because you really don't save any work for yourself. It's not that you can't do it, and it's not that it's too hard, but you will not reap the benefits of using MMF2 like you would making another style of game. :)
-
Re: Smash bros smash
No, that isn't how smash attacks work in the game. You need more than one event.
#1:
When user presses Right arrow
-Set counter to 25
#2
When counter is greater than 0
-Subtract 1 from counter
#3
When counter is greater than 0 and user presses attack
-Smash attack!
-Set counter to 0
Obviously, set the counter to the amount of frames you want the delay to be! By default there are 50 frames a second, so this gives half a second to attack.
-
Re: Smash bros smash
How was I supposed to know how that game doe's it, the only gaming console I have is the PC.
-
Re: Smash bros smash
1. I wasn't having a go at you
2. If you haven't played it why were you trying to help by giving some random advice
-
Re: Smash bros smash
I was just trying to help.
-
Re: Smash bros smash
Please don't unless you are sure your comment will be of use :)
-
Re: Smash bros smash
Winston I'm Trying To Do The Exact Same Thing But In MMF2 Of Course.
Is There Any Chance Of Posting The Code?
By The Way It's Super Smash Bros. Not Smash bros smash :grin:
-
Re: Smash bros smash
the title of the topic refers to what he is trying to do
The smash from Super Smash Bros hence Smash bros smash