Hello All,
I just recently got into unity (and really dig it), but scripting is definitely my weakest point right now. There are three gameplay mechanics I'd like to add in and have no clue how to. Help on ANY of these would be stellar... thanks in advance!
1.) What I would like to do is when the player presses and holds the "fire 2" button a quick particle effect plays as a one shot, a sound effect plays as a one shot, the player model disappears so all you can see is the shadow blob, and lastly enemies ignore the player. When the player releases the fire 2 button an additional sound plays, the same particle effect plays, the player model pops back into view, and enemies can now "see" the player.
2.) I'd like to start the player off with no jumping ability... which I know is just making canjump false at first. Additionally, when the player hits the space bar a sound plays and a short spark particle emits from the jetpack to further signify it isn't working yet. When the player picks up a specific fuel cell... I want the jetpack to work as it normally does.
3.) Lastly, how would I play more than one sound for the jetpack so that an intro sound plays as a oneshot over the first part of the loop when the player presses space and an outro sound plays as the player releases space and the loop stops. I've added in audio variables to the jet pack script but can't figure out how to call them.
So, any ideas? I've been searching for any leads and have had no luck. Thanks in advance!