|
-
Movieclip Movement
Hey there,
Okay so i understand how to move a movieclip when a key is pressed. You would simply say :
onClipEvent(enterFrame){
if(Key.isDown(Key.SPACE)){
this._x += 5;
}
That works fine, but i want my movieclip to only move +5 once. Like it would not continuously move, i want it to just nudge 5 everytime the user presses space and the user couldn't just hold down space and it would keep moving.
Can someone help ?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|