I am trying to make the player tilt using the animate() proc, and i have that working fine. But, i cannot make the player reset after letting go of the key. Anyhelp?
![]() Apr 25 2014, 9:23 am
|
|
Forum_account has an awesome library to handle this very thing. You can check it out here, and read the documentation for more details.
|
I was looking for more of a client.Move() sort of thing, like seeing if a proc is firing or not. I am not using libraries as of now
|
Try reseting it after Move() has finished? You said you finished making it tilt, and if you've done that; after the step wouldn't you want to tilt it back to be straight up? That should reset it to standing right up after you stop moving if i'm correct. Kind of like the following?
Move() |
The way it works is it has a hidden player verb, and on each of the directions it tilts. i need it to reset when the player stops moving, and is idling
|
Check out my EdgeSliding demo. You will benefit from the movement loop I constructed to handle input.
Notice that I use a +UP macro and a +DOWN macro to handle the movement loop. You can use the same technique to detect when a movement has ended or begun. |
Another idea that i had to handle it is to have a value, that every tick is reset, but when a player is moving it is pushed up to one. Any idea how to do this? I could have the player tilt back when the value is 0.
|
TGameCo wrote:
Another idea that i had to handle it is to have a value, that every tick is reset, but when a player is moving it is pushed up to one. Any idea how to do this? I could have the player tilt back when the value is 0. That's going to depend on timing and potentially induce side-effects --my advice would be to take a look at my EdgeSliding demo, it's really the best way to handle it. |