here is the final script i came up with if anyone is interested
yes it works =)
just put it on the frame’s actions
mapspeed is a variable set on the first frame … it’s default value is 5
//this is the control function for the arrowkey map controls
//up arrow
_root.onEnterFrame = function() {
if (Key.isDown(38)) {
_root.map._y+=mapspeed;
}
//down arrow
if (Key.isDown(40)) {
_root.map._y-=mapspeed;
}
//left arrow
if (Key.isDown(37)) {
_root.map._x+=mapspeed;
}
//right arrow
if (Key.isDown(39)) {
_root.map._x-=mapspeed;
}
}
yes i’m aware it makes the symbol move opposite the direction pressed but that makes the user appear to be going that direction. so they press the key in the direction the want to look and that direction is revealed. i felt it made it feel more natural.
thx for the other script but i probably shouldn’t use it since i don’t understand it
is that obfuscated beta? wtf is obfuscated?
lol … sorry if that’s a silly question but as is my first experience coding anything except html