Sound and Pausing Tutorial
โดย CoolioJulio
Sound and Pausing Tutorial
แท็กสำหรับ Sound and Pausing Tutorial
รายละเอียด
Learn how to program sound and implement pausing!
วิธีเล่น
Arrow keys to move!
อัปเดตจากผู้พัฒนา
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;
}
}
ความคิดเห็น
Heylon
Jun. 30, 2009
a little more graphics and animation would make it much better. good start. 4/5
minipika12
May. 18, 2009
Are you Juliacoolo from Pokebeach? xD
xxxxfrazorxxxx
May. 18, 2009
4/5 good tutorial :)
UploaderX
May. 18, 2009
the tutorial is ok.
Kegann
May. 18, 2009
3rd post!
omg its coolio! lol