Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (3run, miwok, AndrewAMD, Quad, TipmyPip, fairtrader, 1 invisible), 637 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: CENTERING PROJECTILES (MAYBE ONE FOR DOUG) #4238
06/11/01 07:06
06/11/01 07:06

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Skater, I don't quite understand your post. Can you re-write it please. Do you mean set p=10, then call set_pos_ahead, then the shoot bit I didn't understand. Can you tell me again please. Thanks for helping.


Re: CENTERING PROJECTILES (MAYBE ONE FOR DOUG) #4239
06/11/01 00:44
06/11/01 00:44

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



IF you want the gun to fire projectiles from the muzzle, directly into the center of the screen, right something like this:
code:

p = 999999999;
set_pos_ahead();
vec_set(gun_target,MY_POS);

Put this where you would normally find the gun_target code in the weapons.wdl.

This should always center the bullet.

Rockets are a little more complicated, but I can do it if you want me to.


Re: CENTERING PROJECTILES (MAYBE ONE FOR DOUG) #4240
06/11/01 00:56
06/11/01 00:56

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Skater, interesting results! The projectiles turn round and hit me in the face! Is this what your code is supposed to do? I meant, I want it so that the projectiles come from the gun muzzle, and go towards the center of the screen, but going forwards! Have you ever played a shoot em up!


Re: CENTERING PROJECTILES (MAYBE ONE FOR DOUG) #4241
06/11/01 07:12
06/11/01 07:12

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Note that I said something like this, not this is exact. Look at the Weapon_carry function for a better idea. I've player more shootem up games then most people will in there entire life, I have well over 50 boxes in my corner from games that are all First Person Shooters.

Re: CENTERING PROJECTILES (MAYBE ONE FOR DOUG) #4242
06/11/01 09:47
06/11/01 09:47

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Please explain a little better what you want. Do you want the bullets to line up in the center of the screen, or something like the Rocket Launchers centering (even though they were fired from the gun_muzzle?

Re: CENTERING PROJECTILES (MAYBE ONE FOR DOUG) #4243
06/12/01 00:26
06/12/01 00:26

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



All I want is a centering code like any shoot em up. Where you have a crosshair in the center, (which I can do!), and all bullets and rockets fly towards where the crosshair is pointing to. If you have played loads of shoot em ups, you should know what I mean. I have got it working, so that the rockets go towards where the crosshair is pointing, but they don't leave from the gun muzzle. They leave from the center of the screen.


Re: CENTERING PROJECTILES (MAYBE ONE FOR DOUG) #4244
06/12/01 00:39
06/12/01 00:39

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I have a way of doing it, but the only way I could make the rocket appear to leave through the rocket launcher was by putting it in the rocket launcher, The Rocket Launcher clips off, so the gun_muzzle won't fire. First off what did you do to make the rockets fly toward the middle? DId you do a shoot?

[This message has been edited by Skater (edited 11 June 2001).]


Re: CENTERING PROJECTILES (MAYBE ONE FOR DOUG) #4245
06/12/01 00:42
06/12/01 00:42

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



No, I used part of your code, the one you are giving away.


Re: CENTERING PROJECTILES (MAYBE ONE FOR DOUG) #4246
06/13/01 03:12
06/13/01 03:12

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I found a way of doing it, and my weapon workshop is halfway complete. I am reprogramming it entirely. Just wait a few more days and I'll send it to Jcl.

Re: CENTERING PROJECTILES (MAYBE ONE FOR DOUG) #4247
06/13/01 03:38
06/13/01 03:38

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Wow! Nice one Skater! Thanks! Are you going to put it up for download too? JCL may take a while in putting it on downloads. I don't know.


Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | 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