Hi guys! The hero from the 2D game I'm developing has some accessibility issues, so she needs a wheelchair to move through the scene. I'm trying to create a behavior of a person over a wheelchair on a non flat terrain or slopes. It means the hero body should tilt front and backward, depending the wheelchair position on the terrain or even according to the wheelchair movement. I was trying to use some joint to do that but it doesn't work. Any clue about how I can develop this behavior?
Thanks in advance. 🙂
Wheelchair behavior
Asked Answered
Are you talking about tilting the whole person + wheelchair sprite, or separating them so the person's torso can tilt at different angles to the chair?
Portsalut I meant tilt the person torso in different angles, but in some cases tilting the chair could be needed too, because the floor may be not flat.
I don't think that should be too hard. Make the torso its own sprite, adjust the offset so that the hip (or where the hip would be, if it's not visible) is the center of the sprite, and then you can adjust the rotation of just that sprite to make it look like the person is leaning.
© 2022 - 2024 — McMap. All rights reserved.