TL;DR: I need some advice on how to make a see-saw in 2D that alternately launches its riders into the air when one lands on it properly.
(I’m not sure if this post is going to end up in the right place, the topic creation interface is pretty confusing. Hopefully a mod will move it if need be.)
So I’m trying to make a game similar to the old Circus Atari! game (you can look up videos if you are interested). Basically, I need a see-saw that the player controls along the bottom of the screen and two acrobat ‘objects’ that alternate jumping to the upper part of the screen to break blocks/grab objects, etc.
Right now I’m just trying to get started and get the see-saw working and it’s been a long time since I did any game dev, so I’m somewhat at a loss. So far I have a triangle for the fulcrum and a box for the bar. I tried using the built-in hinge feature to get it working just with physics but it went a bit screwy and was rotating the bar’s collision box separate from its sprite and I couldn’t figure out why. So I am scrapping the hinge and just going to code it all myself, I guess (which is probably for the best).
So what I need from you fine people is some idea of where/how to start. My current plan is to have a collision box on each end of the bar which detects when an acrobat collides with it and snaps them to that end of the bar while rotating the bar and launching the acrobat from the opposite side of the bar into the air. I already have the fulcrum moving back and forth with player input (though I have no idea if I did it in a good way). I’m just having a hard time getting back into this and hoping someone can give me a nudge in the right direction, at least.