Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sniper Kill Animation
Senior Member
Dameria's Avatar
Status: Offline
Posts: 976
Join Date: Sep 2009
Location: United States
Default Sniper Kill Animation - 04-05-2011, 05:53 PM

This is also a program that I was working on last year but never posted because I never got to finish the animations for each individual shot. Right now, you press the spacebar to zoom in and you can only perform a headshot because I have only coded for the headshot animation. Once the person dies, you have to shoot his body again to make him stand back up and shoot him again. I got the recoil to work well on this and I also already set up for the animations of every other body part.

If you want to work on this and finish it for me, you can make your own custom animations for the different body shots. For example, just go to the guerrilla object in the list and choose the method "bulletCheck" and you can see the animation I did for the headshot, and make your own for other shots like the left arm, right arm, etc. I have already calculated the correct dimensions of each shot so it should be on target for each one, all you need to do is add the death animation.

I made this program primarily to show how to zoom in for a sniper rifle if anyone wanted to adapt it for any first person shooting games that they might have been working on. If that is the case, then look at the world method called "zoom" and you can see how I made the camera zoom in with all the animations of the rifle. The "xZoom" world variable is the magnification number that you want the rifle to zoom in. You can set it to any number, but right now it is set at 10x zoom. If you change the variable to 5, it will be 5x zoom, if you change it to 40, it will be 40x zoom (thats looking really far!).
Attached Files
File Type: a2w SniperZoom.a2w (1.70 MB, 78 views)

Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ...................
Alice Paint ...........................
Real-Time Clock ..................
Maze Game .........................
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.