Dashing System like Mother 3 Problems

Hello People,
This is actually my first post on this forum... Normally i'd google my problems, and oftentimes i'd end up on this forum. But now i've finally stumbled upon a problem that i couldnt find any answer to anywhere, so im giving it a go to ask some help on these forums. Here it goes:

Basically im trying to replicate the mother 3 dashing system, for the people who dont know: You press the run activate button, and your character will keep on running until it bashes against an object, or when you cancel the run, meanwhile while running, you dont have to press anything besides the direction you wanna turn to.

Well in any case while trying to replicate this (very epic) running system, Ive come across a really big problem. Namely: the game doesnt properly register when im moving or not moving. What im currently trying is:

if, shift is pressed

if so, switch sprinting on.


if, sprinting is on
if, player is facing down

if so, player moves down


If, script: !&gamePlayer.isMoving() "means if player is standing still, which should only happen when facing an obstacle"

if so, sprinting off

Thats basically the gist of the code, i hope its not too unclear... So for some reason the game keeps thinking the player is not moving, even when he actually is through the movement command. and if i remove the whole cancel movement part, hes walking around without any stagnation.

If its confusing, dont be afraid to ask any questions. Thanks in advance!

Edit:

Also to make it clear what Im looking for is:

1) Either a better way for the game to check if im moving or not.

2) Or a better way to make the player move around, that doesnt actually make the game think you arent moving.

3) Or some whole different method to get the running system up and (running lol).
bump
lol I don't know how to answer your question. I'd say you can turn on sprinting without holding down SHIFT key in the options menu.
lol I don't know how to answer your question. I'd say you can turn on sprinting without holding down SHIFT key in the options menu.
but its not about sprinting itself, its about the player walking forward without any key input, and also about recognizing when hes walking against a wall.
but its not about sprinting itself, its about the player walking forward without any key input, and also about recognizing when hes walking against a wall.
Excuse my first post. You can use a new custom event with an auto self switch to manipulate your character movement but I don't know if that's what you want. let me show you what I mean:
upload_2017-4-22_19-1-30.png
Excuse my first post. You can use a new custom event with an auto self switch to manipulate your character movement but I don't know if that's what you want. let me show you what I mean:
View attachment 62711
hey no need to apologize for trying to help!
Anyway that wasnt what i meant. Actually by now i think i noticed that the ''!&gamePlayer.isMoving()'' script doesnt seem to work properly(or im doing something wrong?) My main issue is that I want the game to know whether im moving or standing still, and the script checking that seems to think that the player is not moving sometimes while he actually is moving! So what im looking for here is:

1) Either i need to know what im doing wrong; because the game thinks the player is not moving sometimes while he actually is moving

2) Or I need to know a better script... or anything really, that manages to find out wether the player or any event is either moving or is standing still.

3) Or I need to some whole different method to replicate the *mother 3* running system, one i didnt think of yet.
Man, I'm stumped. I would like to help you out but my knowledge is very limited. Do you mean you want the character sprite to be moving in a walking animation while not moving?
Man, I'm stumped. I would like to help you out but my knowledge is very limited. Do you mean you want the character sprite to be moving in a walking animation while not moving?
Nah i just want the game to properly "check" whether the "player" is actually in motion. Id say its a pretty advanced rpg maker problem, but im not sure, maybe im just a dumbass. But looking at how no one besides you is responding, i guess either i explained wrong, or people dont know how to deal with it.

I want the game to monitor when the player is slamming against a wall, so i can do an effect. And i also want the player to run forward after you triggered a button, and i want the player to keep running forward even if you arent holding the button.

But if you dont know, you cant help it. I appreciate your time and willingness to help in any case 🙂
No problem man. Is it possible though? XD
No problem man. Is it possible though? XD
I certainly hope so 😛. If not however its not the end of the world, but id really like it to work the way i want it to work haha
Nah i just want the game to properly "check" whether the "player" is actually in motion. Id say its a pretty advanced rpg maker problem, but im not sure, maybe im just a dumbass. But looking at how no one besides you is responding, i guess either i explained wrong, or people dont know how to deal with it.

I want the game to monitor when the player is slamming against a wall, so i can do an effect. And i also want the player to run forward after you triggered a button, and i want the player to keep running forward even if you arent holding the button.

But if you dont know, you cant help it. I appreciate your time and willingness to help in any case 🙂
Oh! I have an idea! Have you tried using the conditional branch under the"flow control" category? With that I'm sure you'll figure out some clues on how to make it work. I'm unsure of what to do for "hitting a wall" but, the automatic movement without pressing a button is a condition under the conditional branch. Try that and in the meantime I'll figure out the other thing for you! Actually, on second thought that doesn't figure anything out. Still, I'll help you out as much as I can!
Oh! I have an idea! Have you tried using the conditional branch under the"flow control" category? With that I'm sure you'll figure out some clues on how to make it work. I'm unsure of what to do for "hitting a wall" but, the automatic movement without pressing a button is a condition under the conditional branch. Try that and in the meantime I'll figure out the other thing for you! Actually, on second thought that doesn't figure anything out. Still, I'll help you out as much as I can!
Actually I already basically had the running part covered. The real problem is that I cant find a properly working check to see when im faceplanting against something solid, except maybe for putting events on literally every solid object you can run in, that turn on some switch when you touch them, but that wouldnt be worth the effort.
But keep the brainjuices flowing! 😛
Ahhh...I get what you are trying to do. I just checked a youtube video on the dash mechanic for Mother 3. You want to hold the dash button for a couple seconds to run then release the button while you dash without having to hold on to any button any longer?
Ahhh...I get what you are trying to do. I just checked a youtube video on the dash mechanic for Mother 3. You want to hold the dash button for a couple seconds to run then release the button while you dash without having to hold on to any button any longer?
Ye exactly, although im honestly not sure if it can be done by now. 🙁
If there's a will there's a way!
Your script is wrong 😉 It should be !$gamePlayer.isMoving(). I also added Conditional Branches for button presses to change the direction. The following appears to be working now (in a spoiler, because the list of commands has become quite long):
Spoiler: Event Commands
◆If:Button [Shift] is pressed down
◆Control Switches:#0001 Sprinting = ON
◆
:End
◆If:Sprinting is ON
◆If:Player is facing Down
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Down
◆
:End
◆If:Player is facing Left
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Left
◆
:End
◆If:Player is facing Right
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Right
◆
:End
◆If:Player is facing Up
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Up
◆
:End
◆If:Button [Down] is pressed down
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Down
◆
:End
◆If:Button
is pressed down
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Left
◆
:End
◆If:Button​
is pressed down
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Right
◆
:End
◆If:Button [Up] is pressed down
◆Set Movement Route:Player (Repeat, Skip)
:Set Movement Route:◇Move Up
◆
:End
◆Wait:3 frames
◆If:Script:!$gamePlayer.isMoving()
◆Control Switches:#0001 Sprinting = OFF
◆Set Movement Route:Player (Skip)
◆
:End
◆
:End
​
​
​

You could combine "Player is facing Down OR Button [Down] is pressed down" into a single Script condition (logic OR is || ), but I don't have the time to look up the Javascript equivalents for those commands right now.​
@LadyBaskerville well what do you know, it actually works!? I actually only mistyped the script !$gamePlayer.isMoving() on the forums... in game i used the right script. But apparently the problem was that I hadnt put in a wait time haha. That little itty bitty ''wait 3 frames'' was what butchered the whole thing lol. I really appreciate you fixing my problem, thanks!
@LadyBaskerville Actually, id appreciate it if you could find the script to check in what direction the player is facing for me. I cant seem to find it on the script commands page. Its not completely necessary for this situation, but it could be useful later on too.
If there's a will...there's a way 😉👍
If there's a will...there's a way 😉👍
ye for sure. im just glad there are people with more knowledge than me out there haha. @BLACK And thank you too for your efforts 🙂

Original thread: https://forums.rpgmakerweb.com/threads/dashing-system-like-mother-3-problems.77667/