Forum Topic: Rotational Shooting Bullets

(240 views • 3 replies)

This topic is 1 page long.

<< < > >>
None

Gutta-Games

Reply To Post Reply & Quote

Posted at: 6/13/06 08:58 PM

Gutta-Games LIGHT LEVEL 05

Sign-Up: 07/25/05

Posts: 138

Can somone please help me wit some coding, this is wat i have for my movement:
onClipEvent (load) {
speed = 2;
}
onClipEvent (enterFrame) {
if (key.isdown(key.RIGHT)) {
play();
_rotation = 90;
_x+= speed;
}
if (key.isdown(key.LEFT)) {
play();
_rotation = 270;
_x-= speed;
}
if (key.isdown(key.UP)) {
play();
_rotation = 0;
_y-= speed;
}
if (key.isdown(key.DOWN)) {
play();
_rotation = 180;
_y+= speed;
}
if (key.isdown(key.RIGHT) && key.isdown(key.UP)) {
_rotation = 45;
}
if (key.isdown(key.LEFT) && key.isdown(key.UP)) {
_rotation = 315;
}
if (key.isdown(key.RIGHT) && key.isdown(key.DOWN)) {
_rotation = 135;
}
if (key.isdown(key.LEFT) && key.isdown(key.DOWN)) {
_rotation = 225;
}
}

How could i get him to shoot wit a keyboard press where he is pointing at?


None

Canadian-Jeff

Reply To Post Reply & Quote

Posted at: 6/13/06 10:47 PM

Canadian-Jeff NEUTRAL LEVEL 12

Sign-Up: 09/17/05

Posts: 116

plz tell what you would like to be checked.


None

Gutta-Games

Reply To Post Reply & Quote

Posted at: 6/14/06 03:27 AM

Gutta-Games LIGHT LEVEL 05

Sign-Up: 07/25/05

Posts: 138

im trying to find out how to make it where my character can shoot out bullets or something in that rotation.


None

DJStatika

Reply To Post Reply & Quote

Posted at: 6/14/06 08:30 AM

DJStatika NEUTRAL LEVEL 04

Sign-Up: 04/19/05

Posts: 43

look up attachMovie or duplicateMovieClip to find out how to create the bullet

Then put actions in the bullet movieclip to make it move


All times are Eastern Standard Time (GMT -5) | Current Time: 07:59 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!