|
|
|
|
|
1. Create an obect
2. Group the object into a sprite
3. Name the Sprite Objects
4. Click on the sprite
5. Enter in the following script:
on (keyPress("<Right>")) {
Object. _x+=1;
}
on (keyPress("<Left>")) {
Object. _x-=1;
}
on (keyPress("<Down>")) {
Object. _y+=1;
}
on (keyPress("<up>")) {
Object. _y-=1;
}
|
|
|