O'Reilly logo

UnrealScript Game Programming Cookbook by Dave Voyles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Animating our pickup

Our pickup is moving towards almost completed, but there are a few more additions we can make to it, to allow for a bit more life behind breathe life into our object. Let's add a rotation and bob to our pickup, so that it really grabs our eye with some animation.

Getting ready

Open up your Tut_AmmoPickup class in your IDE and we can begin.

How to do it...

This is very straightforward. We start off by adding a rotation to our pickup, and then add an animated bobbing motion. Just as we did with our previous tutorials, we'll need to alter our defaultproperties block as explained in the following steps:

  1. In the defaultproperties block write the following code:
    defaultproperties { .... /** If true, our pickup will rotation in place */ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required