Bentley
Member
I'm goofing around with a Pooyan remake:
Enemies float down on a balloon and you move vertically in an elevator. As the enemies descend, if their y is roughly equal to your y, they throw a rock at you.
When I watch the gameplay, the rock seems to get a consistent arc, even though enemies are at varying x distances away.
I tried a bunch of crap. I tried angling the throw higher the further the enemy is away. I tried setting a target_y above the player's head and having gravity kick in at a certain point. But I can't get the trajectory to look right.
How would you approach this? I keep swimming in the same pool of my own bad ideas, so other ideas are much appreciated. Thanks for reading.
Enemies float down on a balloon and you move vertically in an elevator. As the enemies descend, if their y is roughly equal to your y, they throw a rock at you.
When I watch the gameplay, the rock seems to get a consistent arc, even though enemies are at varying x distances away.
I tried a bunch of crap. I tried angling the throw higher the further the enemy is away. I tried setting a target_y above the player's head and having gravity kick in at a certain point. But I can't get the trajectory to look right.
How would you approach this? I keep swimming in the same pool of my own bad ideas, so other ideas are much appreciated. Thanks for reading.
Last edited: