- Home /
The question is answered, right answer was accepted
read notes like amnesia/penumbra
Hi at all, i'm new. I have a question: how can player pick up a note and read like in amnesia? (With E pickup the note and appear an image with the note) Thanks
Answer by CharlesD · Aug 15, 2012 at 01:55 AM
Hi, new here as well. Currently my team is working on a similar project involving some of the mechanics used in Amnesia. While we have not yet reached the point of developing our own note reading system, I felt like writing something cool today to help you out. the attachment provided has everything you should need to get a very basic setup going, it is tested and comes with everything including a skin and texture (although very basic). The read-me in the package explains in more detail and the code is well documented (IMO), Good Luck.
Sorry was posting my comments as answers. Silly me! But you are the $$anonymous$$AN CharlesD! This is exactly what I have been hunting for! I just need to figure out how to make it display different background textures when looking at different note objects now. Thanks!
Thanks, Just set up a GUISkin for each type of note and then give the note script a public field for the Skin. For each different type of note attach a different skin. Finally in the script that reads the note simply add an extra line for getting the skin as well as the text and store the skin. Change the GUIDraw function to use the skin from the note ins$$anonymous$$d of a default and there you go.
This does what I wanted to do.
Note Script http://pastebin.com/fJdHBh4Z
Read Note Script
Thanks to CharlesD from Unity Answers and GalenEvil from Unity3D IRC channel and pure dumb luck!
the http://pastebin.com/y7fg7FqT or the Read Note Script doesnt work
Don't post comments as answers. Ill convert it this time.
Follow this Question
Related Questions
Script writing a note to player save on their desktops 1 Answer
How To Add A Simple Speed Boost On Collision With A Specific Object With A Character Controller 0 Answers
How to make a image flash infront of the camera 1 Answer
Objects move on own 3 Answers
How do I make an object disappear when you look at it 2 Answers