The easiest way to do it would be to create a variable (maybe called "gun"). When certain keys are pressed, certain values are assigned to the variable (i.e. pressing 1 sets "gun" to 1). Then, if you have a sprite for all of the guns, have it switch to costume "gun" (1) which would be an ak47 for you
Offline
zammer990 wrote:
^ that, in scratchblocks it'd be
whenclicked
foreverifkey1 ▼pressed ?setgun ▼to1ifkey2 ▼pressed ?setgun ▼to2switch to costumegun
Blocks fixed and improved.
Last edited by jontmy00 (2012-05-06 02:50:43)
Offline