|
X Complete Initialization for 10 kreds Complete the Quest and earn an exclusive shiny kongpanion + 10 kreds 15% Congratulations! You’ve completed your Kongregate account! Congratulations! You’ve completed your Kartridge quest! Spend your hard earned kreds on some of these games! MartinAntonsen's messagesPublic messages for MartinAntonsen
ComedyPranksters
Jul 9, 2012 9:41pm hey i program in flash to . and what codes did u use to make the gun in ur fps game shoot full auto
comment
Loading
MartinAntonsen
Jul 13, 2012 7:12pm
Hi. My Englis is not the best but i will try to explain anyway. After each shot i use an if statement to check if there is any ammo left, if the trigger is pulled and if the boolean FullAuto is true. … show moreHi. My Englis is not the best but i will try to explain anyway. After each shot i use an if statement to check if there is any ammo left, if the trigger is pulled and if the boolean FullAuto is true. If the ammo is equal to or greater than 1, and the trigger boolean is true and te full auto boolean is true the animation will play again, if not it will go to the empty frame. Hope this helped and good luck! Also heres a snippet of the code: if (_root.Ammo>=1 && _root.TriggerPulled == true && _root.FullAuto == true) { |