So i want to make a game but i am kinds NOOBish with actionscript so, what i wanna make is something like this
I have a character on stage AND i want to move him left and right so i guess the code is like this
//I dont know if this is a code i just made it up
if (Key.isDown(Key.LEFT)) {
this.shelterdog.x += -2;
}
if (Key.isDown(Key.RIGHT)) {
this.shelterdog.x += 2;
}
the code is placed on the frame. should i paste it on the character?