x


Killing keyboard input until cutscene has played.

I have an intro camera flyover that plays at the start of a level. However, if the player presses any key, it instantly skips to game play.

How can I inhibit keyboard input until my camera move has completed?

more ▼

asked Dec 27 '10 at 02:58 PM

navparker gravatar image

navparker
52 6 6 9

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

You could make a Boolean and make input allowed only when it's true, that's what I do.

more ▼

answered Dec 27 '10 at 03:43 PM

Jesus_Freak gravatar image

Jesus_Freak
1.2k 38 44 59

(comments are locked)
10|3000 characters needed characters left

function Awake () {

yield cameraAnimation;

}

I don't know for a fact if that'd work, but you can always disable the scripts on the player for whatever amount of time in the update function. Use GetComponent, and just .enable = false on them, and then he cant move, then do the yield above, or just WaitForSeconds(5), and then you can just have him be able to move 5 seconds after....

Good luck!

more ▼

answered Dec 27 '10 at 03:19 PM

Justin Warner gravatar image

Justin Warner
6.3k 19 27 65

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2988
x952
x194
x79
x1

asked: Dec 27 '10 at 02:58 PM

Seen: 1118 times

Last Updated: Dec 27 '10 at 02:58 PM