Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,633 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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