|
-
Hi,
I'm new to Flash, but not to programming. I've had experience in C/C++ but I'm stuck on my first flash project.
Eventually I want to recreate the old game spectrum classic Juggernaught.....but first things first.
At the moment I have a simple movie clip, of a square that rotates when you click the left and right arrow keys. What i want it to do is to travel in the same direction it's pointing.
I don't really know where to start in Flash (version 5)
Heres the code i got so far:
onClipEvent ( load ) {
rotspeed=5
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
this._rotation+=rotSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._rotation-=rotSpeed;
}
}
Any help will be much appreciated.
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
|