Games Achievements My Kong Sign In

eterps' Comments

Comment

Shootorial #4

Play Shootorial #4

Oct. 24, 2008

Rating: 0

Actionscript is great! So much easier than other languages. I've been trying to get the enemies to bob up and down for a while, and FINALLY figured it out. In the EnemyShip class, under var speed; add the line: var bobCounter Then in function onLoad(), add the line bobCounter = 0; Finally, go to function onEnterFrame() and add two lines of code. The first is: _y += Math.cos(bobCounter)*10 and the next line is: bobCounter += (Math.PI/8);

Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms of Service Privacy Policy Code of Conduct
© 2025 Kongregate