Tuesday, September 18, 2012

Second weeks blog post.

This week I worked on my level. I added Interp actors and coded a win/loss condition for my game. The interp actors worked pretty good after I got them set up with matinee. I used kismet to get the doors to open when shot at with a plasma gun. For the door to work forward and back I had to create a bool that would tell it when it should reverse and when it should play forward.

For the win/loss condition, I had to set up a time amount to get the items required and get back. It took a little bit to come up with a good number to deal with getting the items and fighting the bots. But I came up with 40 seconds as a good time. For the items and win condition part I set up a integer comparison. When someone triggers a trigger it will add to the total amount of items they have. Then if they get back to the car in time and have 2/2 items, they win. Now and then I've seen it glitch and not let you win, but I had a hard time narrowing the reason because it's on and off. It should be fixed now though, it might have been the trigger was set to only trigger once.