Gamestudio Links
Zorro Links
Newest Posts
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (pr0logic), 3,312 guests, and 17 spiders.
Key: Admin, Global Mod, Mod
Newest Members
VladMak, Geir, ondrej, mredit, vestriaa
19207 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Sticking sword on back NOOB Question #252028
02/16/09 01:58
02/16/09 01:58
Joined: Nov 2006
Posts: 193
England
RyuShinji Offline OP
Member
RyuShinji  Offline OP
Member

Joined: Nov 2006
Posts: 193
England
Hi I want my sword to be stuck to the players back heres my code why doesnt this work and what will???
Quote:
vec_for_vertex(my.X,you,134); // get position of weapon
vec_set(my.pan,you.pan); // set pan to owner's pan
vec_to_angle(my.pan,you.x);
my.y = my.y + 8 * sin(you.pan) - 8 * cos(you.pan);
my.pan -= 90; // adjust weapon so player can see it better
my.tilt += 45; // adjust weapon so player can see it better


Last edited by RyuShinji; 02/16/09 02:15.
Re: Sticking sword on back NOOB Question [Re: RyuShinji] #252087
02/16/09 11:20
02/16/09 11:20
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
What exactly does not work with that snippet?

Re: Sticking sword on back NOOB Question [Re: Xarthor] #252391
02/18/09 00:40
02/18/09 00:40
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Is this the code your using

vec_for_vertex(my.X,you,134); // get position of weapon

because my.X should be my.x

Ottawa.


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