"Breathing" effect

Player_EPlayer_E Member, PRO Posts: 604
edited November -1 in Working with GS (Mac)
My project right now is a shooter and I was wondering how I could make an effect that you are breathing while aiming the gun (so it doesn't sit still with dead on accuracy).

I hear ORBZ is the man to go to for math, so I decided to check through his game collection and found an idea that may work in his Trig 101 demo.

I noticed how the witch character in this demo moved in a constant circle, so I dissected the demo and edited some numbers then applied it to the aiming in my game.

This has got me on the right track due to the fact that when idol the gun will move in a small oval shape like a "0" ( I changed it so it was not a perfect circle). Now I am not 100% happy with this, but it will do if need be. If anyone has a tip they could lend me for more of a "natural" breathing effect that would be awesome.

Also an issue I ran into while using ORBZ method is that it uses constrain attribute. This means that I can not move my crosshair. This is a fault in using this method that I am trying to find a work around.

Just thought I would ask the community here to see if anyone had any ideas or thoughts on how this could be achieved.

p.s
your demos really help ORBZ thanks!

Comments

  • BackUpAndDownBackUpAndDown Member Posts: 685
    Could you just make it so that...

    Every 0.5 seconds change the actor (crosshairs) position +10 wait 0.2 then change it to -10?

    I'm still new to this and i'm just saying what came to mind.
  • Player_EPlayer_E Member, PRO Posts: 604
    i'll give that a try maybe I can muster something with that
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    did you ever get it working as you wanted, I'm trying to achieve a similar idea for my game (not sniper related).
Sign In or Register to comment.