Typing script to move character

trying to make a code that states

If(words typed by user= words that are on the screen)

then move character a certain object

any help would be greatly appreciated

basically i would need two variables, one for the text user imput and the other for the stored words

Dupe: http://answers.unity3d.com/questions/47603/please-help-typing-game

2 Answers

2

You can probably do this by having a gui label and textfield. To move an object you can use transform.Translate.

http://msdn.microsoft.com/en-us/library/53k8ybth(v=vs.80).aspx

;-) well played Statement. Also see http://msdn.microsoft.com/en-us/library/system.string_methods(v=VS.71).aspx

http://lmgtfy.com/?q=unity+gui+label

http://lmgtfy.com/?q=unity+text+input

http://lmgtfy.com/?q=unity+move+object

I'm not trying to be rude. But come on.

Thank you for showing us lmgtfy! Awesome!

Yeah :) Instant bookmark :D