Hey, I’m tryin to make a game in flash similar to that game where you fly a helicopter thru a tunnel. I need help with the actionscript for making the object go up when u click, or push a button. any help would be appreciated Thanks!
You need an empty movie clip placed on the stage, that contains the ActionScript for the control system. [AS]
if (Key.isDown(Key.SPACE) && !_root.LaserFire._visible) {
_root.Sound.gotoAndPlay(“Fire”);
tellTarget (_root.LaserFire) {
_x = _root.LaserBase._x;
_visible = true;
}[/AS] This is taken from a Flash 5 program, so you’d need to alter the tellTarget to dot notation. But this is how you detect key presses.
Sweet! Thanks a lot!