Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Jump weapon problem
Topic Started: Nov 18 2007, 05:38 PM (164 Views)
gm_killa
Member
[ *  * ]
Hello here i am again

I have a problem with the jump system my weapon is done now ... finnaly :lol: but now i have a other problem ...

Well its this, I can walk arround and other things .. but when i gonna jump i have a problem the weapon is slower then my person so i see that the weapon comes to it but it is really strange .. i cant figure it out ... i have this in my jump space event for player

Space event player :
Code:
 

  if z==meh_z then { zspeed+=3; sound_play(jump) }
 


Weapon Create :
Code:
 
file='models\Desert_eagle.md2'
frame=1
z=0;
height=5
LoadMesh();
SmoothNormals();
scalx=0.08;
scaly=scalx;
scalz=scalx;
texture=20

canshoot=1
ready=1

rotx=obj_player;
roty=obj_player;
shoot=0;

meh_z=z;
zspeed=0;



Weapon step :
Code:
 
rotx=obj_player.rotx;
roty=obj_player.roty
rotz=obj_player.rotz
x=obj_player.x
y=obj_player.y
z=obj_player.z+20.25


if shoot=1 shoot=0;

if MouseCheckButton(mb_left)
{
      if canshoot = 1
       {
        sound_play(sound0)
        first_frame = 0
        last_frame = 20
        frame=-0.75
        canshoot = 0
        alarm[0] = 25
        shoot=1;
        if ready=1
        sound_play(snd_shell2)
        {alarm[1] = 25 ready=0}
       
        }
}


if ready=1
{
frame=1

}


I hope somebody response Thank you very much

Killa
Offline Profile Quote Post Goto Top
 
NoodleNog
Advanced Member
[ *  *  * ]
Put the

rotx=obj_player.rotx;
roty=obj_player.roty
rotz=obj_player.rotz
x=obj_player.x
y=obj_player.y
z=obj_player.z+20.25


part of the weapon step in the end step event, so that the weapon is moved to the player after the player object has executed its step event.
Offline Profile Quote Post Goto Top
 
gm_killa
Member
[ *  * ]
Yeah great it works :yahoo:


Thanks


killa
Offline Profile Quote Post Goto Top
 
blackhawk
Member Avatar
Elite Member
[ *  *  *  * ]
gm_killa
Nov 19 2007, 04:46 PM
Yeah great it works :yahoo:


Thanks


killa

oMFG thats is wat i told you on MSN :S WTF
Omg you guys this is SO AWESOME
Check this shit out. How the hell is THAT possible?
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply