Turn a Turret with the Mouse

Turn a Turret with the Mouse

von mvrb
Fehler melden
Spiel melden
Loading ad...

Turn a Turret with the Mouse

Bewertung:
2.5
Veröffentlicht: May 02, 2009
Zuletzt aktualisiert: May 02, 2009
Entwickler: mvrb

Tags für Turn a Turret with the Mouse

Beschreibung

In diesem Tutorial lernst du, wie du einen Geschützturm mit der Maus drehen kannst. Er kann auch schießen, wenn du klickst.

Spielanleitung

Bewege die Maus und klicke.

Kommentare

0/1000
GameBuilder15 avatar

GameBuilder15

Jun. 05, 2010

1
0

it doesn't work! I think it's missing some code on the bullet...?

Tukkun avatar

Tukkun

May. 04, 2009

1
0

Fail for not using 30+ fps

irevol avatar

irevol

May. 02, 2009

1
0

cooooool.... but i think it is copy of emanuele feronato's tutorial

gofish avatar

gofish

Oct. 02, 2011

0
0

The code for actually making the bullet move is not there, it's a bad tutorial.

jbggod avatar

jbggod

Nov. 22, 2010

0
0

The bullet dosn't work??? put this code in the shot: onClipEvent(load){
spd=20;
_x=_root.gun._x;
_y=_root.gun._y;
_rotation= _root.gun._rotation;
}
onClipEvent(enterFrame){
if(_name == "shot"){
_x = -1000;
}else{
if (_rotation>180) {
_y += (spd*Math.cos( Math.PI/180*_rotation));
_x -= (spd*Math.sin( Math.PI/180*_rotation));
} else {
_y -= (spd*Math.cos (Math.PI/180*_rotation));
_x += (spd*Math.sin( Math.PI/180*_rotation));
}
}
if(_x>Stage.width || _xStage.height){
this.removeMovieClip();
}
}
other whise good tutorial