Does anyone have experience implementing a jump button feature (preferably through common events) in an MV3D project? One in which you press a button and your player's height increases then decreases. I'll share a few approaches I've tried and my issues with them:
- Using elevation. This is the approach that works the most, however because elevation is relative to the height of the ground under you, if you go over a deep gap your character will dip down suddenly then back up.
- Changing the event's gravity configuration to a negative value then changing it back to normal at the apex of a jump. This approach has the most promise. The issue however is that your character doesn't start to "fall" unless they walk off the edge of a tile so it doesn't work at the press of a button.
- Changing the player's z value as needed. One quirk of MV3D I haven't been able to circumvent is that when you change the Z value of a character there doesn't seem to be a way to reactivate gravity for them, they just stay at the given z value indefinitely.
Any advice is appreciated. Thanks!
- Using elevation. This is the approach that works the most, however because elevation is relative to the height of the ground under you, if you go over a deep gap your character will dip down suddenly then back up.
- Changing the event's gravity configuration to a negative value then changing it back to normal at the apex of a jump. This approach has the most promise. The issue however is that your character doesn't start to "fall" unless they walk off the edge of a tile so it doesn't work at the press of a button.
- Changing the player's z value as needed. One quirk of MV3D I haven't been able to circumvent is that when you change the Z value of a character there doesn't seem to be a way to reactivate gravity for them, they just stay at the given z value indefinitely.
Any advice is appreciated. Thanks!