Hi guys , thank you for reading this. I have a gigantic problem. How do i limit my dash and make it reset if someone presses the dash key repeatedly.
If you have played Rockman X 4-5-6, the longer you hold the dash key the further you dash but to a limit. If you press the dash key while dashing it resets. Here is my example if needed.
Please Help me with this problem in my game.
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
It looks like you forgot to include your example, please post it and I would be happy to assist you.
-
You could have a counter keep track of how often the Dash Key is pressed at one time. If it exceeds a value, reset the level.
-
I'd do something similar to what Paul said. Using his method, you'd use:
Repeat while Shift is pressed
Dash_Reset = 0
+Add one to counter
X Repeat while Shift is pressed
+Set counter to -3
Counter < 0
+Set Dash_Reset to 1
+Add 1 to counter
Counter = 0
+Set Dash_Reset to 0And one more event that I thought of:
Repeat while Shift is pressed
Dash_Reset = 1
+Set counter to -3 -
Guys i am so sorry for the mistake i was sleepy when i wrote this. Here is the example:
Please login to see this link. -
Snail thanks for the help. I really appreciate it but i would like the dash to be like in this video:
Please login to see this media element.
Skip to 1:08 to see what kind of dash i mean. -
Your .mfa doesn't work.
QuoteHow do i limit my dash and make it reset if someone presses the dash key repeatedly.
What I posted is what you need. I'm not programming the dash for you. The code that I just posted takes care of the player pressing the "Dash" key repeatedly, so however you want to program the actual dash is another issue entirely. As long as Dash_Reset is equal to 0, the player can dash.
-
My MFA should work.... that is strange and i do know what you mean with the dash this is my event for the dash.
Repeat while A is pressed.
Ground collider touches the ground.
While wall slide colliders don't overlap.
XUpon pressing Jump.
XRepeat while right arrow is pressed.
XRepeat while left arrow is pressed.Actions:
Set Position X to Player X+4With this event the player continually dashes, what i want is to give a limit to how much they can dash and also reset it if someone repeatedly presses the dash key.
-
Try adding this to the conditions:
Repeat Framerate times (for example, if the framerate is 60 frames per second, use 60).
That means you can only dash for 1 second before it will require you press the dash button again. You can multiply the framerate by the number of seconds you want the dash to last (for example, if you want it to last half a second, then multiply by 0.5) At least, that's how it should work in theory. Give it a try and see if it works.
-
Thanks happygreenfrog
i will try that now. But how do i add that condition?
-
It's under the "limit conditions" sub-menu of the special object, which is the same sub-menu that has the "only one action when event loops" condition. The "repeat" option is one I usually overlook (since I hardly ever use it, though I do know what it does), so I wouldn't be surprised if I wasn't the only one.
-
Ah i did it but i can only dash once.
-
Hm, I guess that doesn't work the way I thought it did, then...
-
Indeed. i just need the dash to finish my engine so that i can upload it online but i had tried many times and failed because its a difficult feature to implement.
I wonder if there is some way to to do the dash like in the X games where:If you press and hold dash you dash until its over, but after 20 of a second you can dash again.
If you tap the dash key then you don't dash as far.
If you repeatedly tap the dash key, you keep doing small little dashes.
If you your already dashing and you repeatedly spam the dash key you also do little dashes.
If you dash and let go halfway you stop.Its quite a headache for me to figure out how to do that as i tried so many times and i keep failing
-
Are you going to release the source code once the engine is done? By the way, the example file seems to require an external file.
-
Yes i will release the source code and i this file should work Please login to see this link. oh and try opening it from MMF2 that should work.
-
Erm, that one also requires an external file. The active picture objects require 2 file:
C:\Users\Axelion\Desktop\Rockman X A.E\Maps + Objects\Object Graphics\Terrain\Training Terain.PNG
C:\Users\Axelion\Desktop\Rockman X A.E\Maps + Objects\Object Graphics\Terrain\Training Terain 2.PNG
I don't have those files, so the player just falls straight down to their doom.
-
i am very sorry i should have realized that i will upload those two files. Forgive me for that
-
Here are the link for the pictures:
Please login to see this link.
Please login to see this link.
Please login to see this link.
Please login to see this link. -
Thanks. I'll get to work on fixing it.
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!