Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 782 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 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 | 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