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).
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).