Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Need help with shooter (http://www.alice.org/community/showthread.php?t=6207)

iBeBeAsTy 03-29-2011 11:43 AM

Need help with shooter
 
Need help in three areas.

1.Enemy health

2.Ammo counter

3.Gun damage(different amounts of damage for different guns e. Shotgun pistol ect.)

TheWhiteGuy 03-29-2011 12:35 PM

[QUOTE=iBeBeAsTy;33060]Need help in three areas.

1.Enemy health

2.Ammo counter

3.Gun damage(different amounts of damage for different guns e. Shotgun pistol ect.)[/QUOTE]

1. there is a posted thing already that has a health bar that you can look at.
2.idk
3. you might have to make it so that when your gun changes it makes the health bars lower or go down faster.

jediaction 03-29-2011 06:04 PM

1: I have uploaded a Health Bar system that I made for 2 other users with the same question

2: Make a 3d text first. Its complicated to explain but here it goes. Make an if/else statement with if the 3d text == to the number of bullets, then in the first empty section, make the text turn to 1 number down. Then in the "else" part, copy the whole thing so far and drag it into the else. But change the == to "whatever number it was" to the number that was numbered down (If the ammo was 10, then make the == part to 9). Then keep it duplicating so the order of number on the way down should look like..10,10,9,9,8,8,7,7,6,6,5,5,4,4..etc..

3: Make an object in the gun(A ball for instance). Make it when ever the user presses the fire button it the bullet moves forward like 30 meters very quickly. Then change the speed to something fast, then make it go back the same distance with (0) seconds, so you have infinite bullets.


Hope this helps!


All times are GMT -5. The time now is 03:50 PM.

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