Sound and Pausing Tutorial

Sound and Pausing Tutorial

oleh CoolioJulio
Laporkan bug
Laporkan Game
Loading ad...

Sound and Pausing Tutorial

Rating:
2.4
Dirilis: May 18, 2009
Terakhir diperbarui: May 18, 2009
Pengembang: CoolioJulio

Tag untuk Sound and Pausing Tutorial

Deskripsi

Pelajari cara memprogram suara dan menerapkan fitur pause!

Cara Bermain

Tombol panah untuk bergerak!

Pembaruan dari Developer

May 18, 2009 1:51pm

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;
}
}

Komentar

0/1000
Heylon avatar

Heylon

Jun. 30, 2009

0
0

a little more graphics and animation would make it much better. good start. 4/5

minipika12 avatar

minipika12

May. 18, 2009

0
0

Are you Juliacoolo from Pokebeach? xD

xxxxfrazorxxxx avatar

xxxxfrazorxxxx

May. 18, 2009

0
0

4/5 good tutorial :)

UploaderX avatar

UploaderX

May. 18, 2009

0
0

the tutorial is ok.

Kegann avatar

Kegann

May. 18, 2009

0
0

3rd post!
omg its coolio! lol