Recoil?
Player_E
Member, PRO Posts: 604
I am currently working on a shooter and I was wondering how to work a recoil feature into the game when the gun is fired.
I want the aimer to jump up when fired then work it's way back down to where it was. does not necessarily have to be the same exact spot (I prefer it is not the same spot to make it more realistic).
right now I have it set so I take advantage of interpolate, but it does not work quite right. I can make it so the aimer jumps up, but it stays in that position and does not work it's way back down.
any thoughts?
I want the aimer to jump up when fired then work it's way back down to where it was. does not necessarily have to be the same exact spot (I prefer it is not the same spot to make it more realistic).
right now I have it set so I take advantage of interpolate, but it does not work quite right. I can make it so the aimer jumps up, but it stays in that position and does not work it's way back down.
any thoughts?
Comments
Then interpolate back down
ill give both these ideas a try in the morning and ill post back with what works best.
thanks for the tips
I wanted to try and stay away from timers, but due to the fact that I move my aimer across the entire scene I could not simply just move to specific X,Y and then move back.
Thanks for the help guys!