Sound and Pausing Tutorial
by CoolioJulio
Add to your home screen for quick access
Install this game
Tap the Share button, then "Add to Home Screen" to install this game for quick access.
Sound and Pausing Tutorial
Tags for Sound and Pausing Tutorial
Description
Learn how to program sound and implement pausing!
How to Play
Arrow keys to move!
Developer Updates
Make sure you have this code:
this.onEnterFrame = function()
{
timer++;
.
.
.
if (Key.isDown(Key.SPACE))
{
i++;
if(timer >= 8)
{
_root.attachMovie(โBulletโ, โBulletโ + i, _root.getNextHighestDepth());
root[โBulletโ + i]._x = Ship.x + 3;
root[โBulletโ + i]._y = Ship.y;
timer = 0;
}
}
}
and this also:
if (Key.isDown(Key.SPACE))
{
i++;
if(timer >= 8)
{
_root.attachMovie(โBulletโ, โBulletโ + i, _root.getNextHighestDepth());
root[โBulletโ + i]._x = Ship.x + 3;
root[โBulletโ + i]._y = Ship.y;
var shoot_sound = new Sound();
shoot_sound.attachSound(โshootโ);
shoot_sound.start();
timer = 0;
}
}
Comments
Heylon
Jun. 30, 2009
a little more graphics and animation would make it much better. good start. 4/5
deleteduser
May. 18, 2009
Are you Juliacoolo from Pokebeach? xD
deleteduser
May. 18, 2009
4/5 good tutorial :)
deleteduser
May. 18, 2009
the tutorial is ok.
deleteduser
May. 18, 2009
3rd post!
omg its coolio! lol