slexiφixels

where slixels are Plexi

case 8

In this case you are to create some objects for your hero to pick up and be granted points for. The points are to be summed up and displayed on screen as they are picked up. You should also create some objects for your hero to avoid. If your hero hits any of these it should be indicated in some way. In some games time is an important aspect. Create a timer that is displayed on screen as well.

For this case I followed a tutorial and got as far as to write the code for the timer down and put together a quick animation, but in order to get the code put in the right spot and get it to work in the way I wanted it to I had some help from Bob in my group. While we were at it he helped me a great deal with the points and the maths required for an easy summation as well.

I ended up with a new class for the timer and points system, all woven through a counting class document, just to see how it would work (according to the tutorial). After implementing the code into my Main.as file correctly it worked like a charm. I’ve still to actually draw some nice looking parts/points, but that’s details I might get back to if I have time to spare later.

Advertisement

November 28, 2009 - Posted by | Animation & Interactivity I | , , , , , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.