Platform Object help (not your typical!)
Hello everyone. I am trying to get gliding to work with the platform movement object. The behavior I am trying to get is that I want the player to descend slowly while automatically moving forward at a set speed, regardless of player input.
This is what I have (in psuedocode) right now (an X signifies a negate):
CONDITION
X: PMO: Object is standing on ground
Upon pressing "Z"
Player Mask is facing direction "right"
DO
PMO: Set Additional Y Velocity to 100
PMO: Set Maximum Y Velocity to 0
Player Mask: Set Alterable Flag 0 to "on"
EDIT: Ah, it was the activation events for my climbing that broke it.
Nonetheless, I can't think of an efficient way for me to deactivate gliding once I hit the floor. I can't check for obstacles while one of my gliding flags are on, because that is included in my activation event for climbing. I think I'm going to need to use more than just a player mask, aren't I?
Re: Platform Object help (not your typical!)
I wouldnt touch Additional velocity at all.
while the conditions are right to initiate glide, and the player initiates glide, change the players animatio to glide, and ignoreplayer input an set gravity to a low number.. also change the maximum x velocoty to the desired glide speed.
while glide animation is playing >>>> PMO>>> player is pressing right
something like that.
Re: Platform Object help (not your typical!)
If I do it this way, the mask does not descend at all. It just hangs there.
EDIT: Ah, it was the activation events for my climbing that broke it.
Nonetheless, I can't think of an efficient way for me to deactivate gliding once I hit the floor. I can't check for obstacles while one of my gliding flags are on, because that is included in my activation event for climbing. I think I'm going to need to use more than just a player mask, aren't I?