Here’s a post about a new piece of interaction and gameplay that I’ve always wanted in my levels, actual moving doors; doors that open and close. It opens when the player touches it and closes when the player steps away from the trigger volume invisible to the player during gameplay. I used an InterplacerActor (InterpActor) Mesh and the Unreal Matinee to animate it.
Here is the Unreal Matinee window. I made it used three key points to animate it. I used three positions to make the animation a little smoother than the recommended two keys. The Unreal Matinee animates the rest after the keys are set.
Here’s the kismet (programming) for the door. I‘ve added another new aspect to my level, sound. When the door opens, a door opening sound effect will play and when the door closes, a door closing sound effect will play. A safeguard trigger has also been placed to ensure that the player doesn’t get stuck inside a room. I want to thank Hourences for their very helpful Movers tutorial.
Here is a shot of the door in the editor. I’m just showing how this set up works. The InterplacerActor mesh is there with a trigger icon next to it. The green box is a TriggerVolume box used for the safeguard.
Here’s an in-game shot of the Door moving in action.
Next Post, I’ll display fracture meshes which is for destroyable static meshes.
Thursday, December 2, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment