and for right-click shoot:
this is a bit comlpex, but just do this:
put a
var upordown
at the begin.
then in onLoad():
upordown = 0
then a new function:
function onMouseDown()
{
upordown = 1
}
and another
function onMouseUp()
{
upordown = 0
}
then you have this code for shooting missiles:
if( Key.isDown(Key.SPACE) && shootLimiter > 8)
make this
if(upordown == 1 && shootLimiter > 8)
there you have a automatic gun triggerd if you have your richt-mouse button down!
2/5, with wasd keys 3/5, for wasd keys go to http://www.kongregate.com/games/pproductions/simplehelp-as2-using-all-keyboard-keys.
maybe you could control the ship with the mouse, then don't pout any keyboard movement code at all but just put at the start : startDrag(this,true) in you onload unction of the ship class
a fewtips:
if u lost al live, u die
the missile is coming from the ship, and not from the missile.
hw to fix that: go inside the ship movieclip,and find the -x and _y position of the place where u want the missile come out (in this case the front end of the turret.
i think you will code like this:
var missile = blablabla
missile._x = _x
wich should be
missile._x = _x + (or -) the turret _x
and same for _y
also please make the bullet only come if you are shooting ( can be done with spacebar or mouse)
mouse code:
function onMouseDown()
{
var missile etc
}
or, even better, make a var called down or something, and then paste this code:
function onMouseDown()
{
down = 1
}
function onMouseUp()
{
down = 0
}
and in the onenterframe function:
if(down == 1)
{
var missile etc
}
you... stupid.. idiot. this is the fitth time or so that peolpe make a list for badges, while this is java, and java can't have kong api. and why should jagex make badges for kongregate?