Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash Rotation

Status
Not open for further replies.

Middy13

Programmer
Mar 27, 2005
3
US
How will I add on to this script to make an object called "gun" rotate 1 degree at a time?


onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
 
Code:
onClipEvent (enterFrame) {
    if (Key.isDown(Key.RIGHT)) {
        _level0.gun._rotation +=1;
    }
}

Sorry messed up with the tags on this "age of stone" forum!

Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top