Friday, 30 October 2015

CGA Gemplay and Interactivity Lesson 6 - Doors opening and Closing.

Today out teacher went through a tutorial on how to open and close a door using scripting, it was almost like a animation but very different process.

We had to add a trigger box to indicate the area for the doors to open ( we made them open to the sides ) and close when we leave the area almost like a automatic door in real life.

This was the start of our scripting with a few things added in.



 We then added the transformation of the doors to where they would move but when we enter the trigger zone, it looks like the doors would teleport to the position we want it and back to the original position when we leave the zone.


So we changed it a bit to make it move almost in real time instead of it teleporting.


Then did the same when closing.

We then deleted a few things right at the bottom of the script because we didn't need them any more as there was another lined scripted above it functioning the same as the lines just deleted and replaced them with some audio files for some music when we enter the zone and the doors closing and opening.







No comments:

Post a Comment