Alice Community

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

kyleaucoin 10-12-2011 08:35 PM

fps help
 
is there a way to say pick up a gun in a rather simple manner. also can someone help me with and ammo/health system. this would be very helpful thanks!

Jabadahut50 10-15-2011 07:37 PM

Simple? yes. complex? If you want it to be.
 
[QUOTE=kyleaucoin;42373]is there a way to say pick up a gun in a rather simple manner. also can someone help me with and ammo/health system. this would be very helpful thanks![/QUOTE]

the simplest ways are just world variables. for the weapon pick up you can have it on the ground and an invisible one in the firing position. then when you walk over it you change the world variable to a higher number, make the gun on the ground invisible, and make the one in your hands visible. To carry multiple weapons at once you can use multiple variables to detect which one you are currently using. To pick up multiple weapons in different orders you can make a list. health and ammo are similar in that they use world variables. hope this helped.:D

Centuri0n 11-05-2011 01:50 PM

Nice
 
[QUOTE=Jabadahut50;42441]the simplest ways are just world variables. for the weapon pick up you can have it on the ground and an invisible one in the firing position. then when you walk over it you change the world variable to a higher number, make the gun on the ground invisible, and make the one in your hands visible. To carry multiple weapons at once you can use multiple variables to detect which one you are currently using. To pick up multiple weapons in different orders you can make a list. health and ammo are similar in that they use world variables. hope this helped.:D[/QUOTE]

Ive done this in a game and it works perfectly, nice post:D

Powerhouse64 11-05-2011 02:25 PM

[QUOTE=kyleaucoin;42373]is there a way to say pick up a gun in a rather simple manner. also can someone help me with and ammo/health system. this would be very helpful thanks![/QUOTE]

There are a TON of examples of this on the forums, at least one person asks this a day since I began lurking on the forums (just got the account a few days ago, so I'm not really the most reliable source). So I'm sure there are a few example worlds floating around that could help you figure this out.


All times are GMT -5. The time now is 10:21 PM.

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