1.I need help with some scripting that i can't really do, i need to attach my weapon to the character, i have made the weapon and i can rotate it and here is the script:
2.I would also like to make the buttons 1, 2, 3, 4, 5 as weapon buttons, as an example: 1: glock, 2: uzi, 3: mp5, 4: Sniper, 5. bazooka. But i don't want the people to have them all at the beginning, i want them to buy them for kills at the end of the level.
3. How do i make my enemies have more hp or less hp? And how to make the the weapons shoot faster and slower, more dmg and lesser dmg.
I know this is kinda much but this is all the things i don't really understand atm, thanks for reading and if you can help, please do.
So when you buy the weapon, make the variable for if it's available true, but not leave the shop. When you leave the shop then go to the frame with mcMain
Oh, sorry. This might not be the easiest way to do it, but I'm more used to making most of the code this way: Export mcMain for actionscript, and put htis code in the class:
class mcMain extends MovieClip { var glockAvailable; function onLoad() { glockAvailable = false; } function onEnterFrame() { if(Key.isDown(49) && glockAvailable == true) { this.glock._visible = true; } } } }
this is just the basic part and only works for the glock.