Hi everyone, I hope you're well.
I've got a little conundrum. I have a little spaceship, sideways scroller shoot 'em up type thing, and I want to make it so that when it goes high up, to a certain Y position value, gravity changes to 0.
I've got something that looks like it's going the the right direction, I just need a bit of help.
On the rigidbody for the spaceship I have un-ticked the 'Use Gravity' box, and put an 'Add Force' action on the ship's FSM, set at -10 on the Y (every frame) to simulate gravity.
I have also added a 'Get Position' action onto the ship, and set a variable (height) on the Y value.
Basically, I want something like - If transform.position Y>= 40, then Add Force Y ==0.
Essentially, I'm trying to simulate the little spaceship breaking the gravitational pull of the 'planet', and floating in zero-G space.
I'm struggling to figure out the 'If' 'Then' kind of structure in Playmaker.
Any help is greatly appreciated.
Thanks,
James.