Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
interesting situation, need scripx
SLAMnesia Offline
Member

Posts: 99
Threads: 39
Joined: May 2011
Reputation: 0
#1
interesting situation, need scripx

I have a cool puzzle where you read a note and its poetry about a piano key, you go to the piano, open the hatch thing, and then when you click on the piano keys it plays a little exerpt of something. you click it 4 times (each time playing a different tune) and on the fourth it makes a key become active/spawn and fall out of the bottom of the piano key area thing. and when the key comes out you look at it for a second or so and it plays the ui_sanity_gain.snt file

How would one do this? Smile
(This post was last modified: 06-21-2011, 05:44 AM by SLAMnesia.)
06-21-2011, 05:42 AM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#2
RE: interesting situation, need scripx

Make an area under the piano hatchcover, small enough so the player can't hit it when trying to open the hatch, or heck, lock the hatch up so it doesn't close. Make a variable, set it to 1. Set the custom focus cross hair to something that makes sense, then have an interact callback. The function for the callback would play part one of the song after checking the variable, then would increase the variable by 1. If 2, plays the second part, etc. Then on the fourth part, make your event of making the key active after a short timer, maybe the length of that fourth part sound.

(This post was last modified: 06-21-2011, 03:39 PM by Russ Money.)
06-21-2011, 03:39 PM
Find




Users browsing this thread: 1 Guest(s)