Page 1 of 1

Partially open portcullis

Posted: Fri Oct 31, 2014 4:37 pm
by Zo Kath Ra
I'd like to improve the "Four Plagues" puzzle:
viewtopic.php?f=20&t=7030

Problem:
If you put a correct item in an alcove, there's no feedback that it's correct - unless the other three alcoves already have correct items in them, in which case the portcullis opens.

Suggestion:
All alcoves are empty, and you put a correct item in one of them => the portcullis opens 10%.
Second => 20%
Third => 30%
Fourth => the portcullis opens completely.

Can this be scripted?

Re: Partially open portcullis

Posted: Fri Oct 31, 2014 4:42 pm
by NutJob
Sorry this isn't an answer, but, I too have been wondering if this is possible.

Re: Partially open portcullis

Posted: Fri Oct 31, 2014 4:43 pm
by Doridion
Not sure than you can partially open a door. Four doors ( portcullis ) in line, ok, but only one opened partially ... hmmmm.

Doors opening is always the same animation, and if I refer to LoG1, there's no "break" in it one. Perhaps Leki or animation creator could create an animation with breaks, and calling these ones by script ?

Re: Partially open portcullis

Posted: Fri Oct 31, 2014 4:47 pm
by NutJob
The one way I mused doing this, being the door opening is an animation and part of the frame updates, is to set the door to open slowly (so it's noticeable something's happening) with velocity/acceleration then destroy the door at 20% open and replace it with a custom asset 'of a door at 20%'.

Re: Partially open portcullis

Posted: Fri Oct 31, 2014 4:47 pm
by Batty
You could play a switch or click sound when the correct item is placed. But, partially open door would be interesting.

Re: Partially open portcullis

Posted: Fri Oct 31, 2014 4:56 pm
by Doridion
Huh i thinked about ! Could you use a destroying bloc instead of an opening door ?

Don't actually know how, but graphics and models are existing for broken walls. Defining a breakable door/wall couldn't be so difficult.

Re: Partially open portcullis

Posted: Fri Oct 31, 2014 5:41 pm
by Prozail
I have an idea.

Use two doors on top of each other. Click away everything but the frame on one, and remove the frame on the other. Then you can use SetWorldPositionY on the metal bars, and move them in steps (and play the sound).

works atleast on the portcullis.

Re: Partially open portcullis

Posted: Fri Oct 31, 2014 5:50 pm
by NutJob
Prozail wrote:I have an idea.

Use two doors on top of each other. Click away everything but the frame on one, and remove the frame on the other. Then you can use SetWorldPositionY on the metal bars, and move them in steps (and play the sound).

works atleast on the portcullis.
~tip of the hat~

That's a great idea, and should undoubtedly work.