Gamestudio Links
Zorro Links
Newest Posts
MRC.c and WFO
by 11honza11. 11/18/25 15:22
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, Quad), 32,974 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Aum 38 Question #230093
10/02/08 19:02
10/02/08 19:02
Joined: Sep 2002
Posts: 199
Chicago, Illinois
Thehawk Offline OP
Member
Thehawk  Offline OP
Member

Joined: Sep 2002
Posts: 199
Chicago, Illinois
Hello,

I'm trying to edit the Aum shooter project. Right now it is a basic top down 2D Shooter. The action Shuttle entity currently shoots one bullet. I want it two shoot two. So I copied the line

ent_create (laser_mdl, my.x, move_bullet1);

and two create a second bullet I place this line of code right after it

ent_create (laser_mdl, my.x, move_bullet2);

I also make a second bullet move function. "bullet move 2" and place it after move_bullet 1.

But the problem is that the second bullet is created in the same position as the first. I tried to change the position of the vector but typing

ent_create (laser_mdl, my.x+1 , move_bullet1); // move the second bullet slghtly to the left.

But putting in the "+1" results in an error. so my question is: Is there any way to create a second bullet? A better way? How can I create a second bullet on a different vector.

Re: Aum 38 Question [Re: Thehawk] #230107
10/02/08 21:13
10/02/08 21:13

F
Fear411
Unregistered
Fear411
Unregistered
F



try

ent_create (laser_mdl, vector(my.x+1,my.y,my.z) , move_bullet1);

Re: Aum 38 Question [Re: ] #230134
10/03/08 00:31
10/03/08 00:31
Joined: Sep 2002
Posts: 199
Chicago, Illinois
Thehawk Offline OP
Member
Thehawk  Offline OP
Member

Joined: Sep 2002
Posts: 199
Chicago, Illinois
cool! so anytime I want to use a vector in a local or global vector scope I have to call it as vector(x,y,z)?

Thanks!


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1