Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,472 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Newbie question on orientation #131049
05/22/07 05:33
05/22/07 05:33
Joined: May 2007
Posts: 51
A
ArtimusBena Offline OP
Junior Member
ArtimusBena  Offline OP
Junior Member
A

Joined: May 2007
Posts: 51



I've run into this problem where a player (spaceship) will only turn upwards 90 degrees, or if he does go further, the left-right controls switch places. It also affects controls if I tell the player's ship to rotate indefinitely. I'm pretty sure this has to do with world orientatin as opposed to player orientation, but I'm unsure how to tell it to use the correct one. I have a6 commercial. Thanks for reading

~Bena

Re: Newbie question on orientation [Re: ArtimusBena] #131050
05/22/07 08:46
05/22/07 08:46
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
Use:
Code:

c_rotate (me, vector(some key or mouse_y,some key or mouse_x, 0), USE_AXISR);


The main world in this code is Use_axisr
From help (F1)
Quote:

USE_AXISR rotates the angle parameter by the entity angle (like ang_rotate). This is required for rotating an arbitrarily orientated object, like an airplane or a spaceship. Otherwise the angle vector is just added to the entities' angles





Never say never.
Re: Newbie question on orientation [Re: tompo] #131051
05/22/07 09:28
05/22/07 09:28
Joined: May 2007
Posts: 51
A
ArtimusBena Offline OP
Junior Member
ArtimusBena  Offline OP
Junior Member
A

Joined: May 2007
Posts: 51
Nice. I hadn't downloaded 6.5 yet : p Thanks a bunch for the prompt reply


~I'm pretty sure I'm uncertain.
Re: Newbie question on orientation [Re: ArtimusBena] #131052
05/22/07 09:31
05/22/07 09:31
Joined: May 2007
Posts: 51
A
ArtimusBena Offline OP
Junior Member
ArtimusBena  Offline OP
Junior Member
A

Joined: May 2007
Posts: 51
Only problem I have now is : Error 37 can't update. No worries, it addresses it in the instructions.

Last edited by ArtimusBena; 05/22/07 09:39.

~I'm pretty sure I'm uncertain.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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