Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (OptimusPrime, AndrewAMD), 14,580 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: I need help, I don't really know how to do this [Re: Walori] #324584
05/21/10 20:30
05/21/10 20:30
Joined: Sep 2009
Posts: 84
Theil Offline OP
Junior Member
Theil  Offline OP
Junior Member

Joined: Sep 2009
Posts: 84
It still doesn't move well and I tried changing the trace_distance and vecto_to_angle from pan to tilt, I uploaded a youtube video take a look:


http://www.youtube.com/watch?v=HI1pFJdFC9U


And again thanks. This community is pretty fast for replies. =)

Re: I need help, I don't really know how to do this [Re: Theil] #324585
05/21/10 20:40
05/21/10 20:40
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
dont know if it works copied from a old game

Code:
vec_set(temp,vector(mouse_pos.x,mouse_pos.y,vec_dist(ent_weapon.x,camera.x)));	
		vec_for_screen(temp,camera);
		
  		vec_sub(temp,ent_weapon.x);
  		vec_to_angle(ent_weapon.pan,temp);
  		ent_weapon.pan = 0;



Last edited by flits; 05/21/10 20:55.

"empty"
Re: I need help, I don't really know how to do this [Re: flits] #324587
05/21/10 20:55
05/21/10 20:55
Joined: Sep 2009
Posts: 84
Theil Offline OP
Junior Member
Theil  Offline OP
Junior Member

Joined: Sep 2009
Posts: 84
Now I'm getting this:

http://www.youtube.com/watch?v=-vUhxJ4M8ZQ

again, sorry if I'm being kind of annoying but it is first time that I deal let's say converting 2D vectors to 3D. thanks.

Re: I need help, I don't really know how to do this [Re: Theil] #324588
05/21/10 20:57
05/21/10 20:57
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
yeah you need to rotate the tilt by 90 and then it should work better

and teh other problem is it only detects it on 180 degrees so over de 180 degrees you should turn it (ore add 180 tilt)

hopes that helps


"empty"
Re: I need help, I don't really know how to do this [Re: flits] #324597
05/21/10 22:17
05/21/10 22:17
Joined: Sep 2009
Posts: 84
Theil Offline OP
Junior Member
Theil  Offline OP
Junior Member

Joined: Sep 2009
Posts: 84
Originally Posted By: flits
yeah you need to rotate the tilt by 90 and then it should work better

and teh other problem is it only detects it on 180 degrees so over de 180 degrees you should turn it (ore add 180 tilt)

hopes that helps


How can I implement this?

Page 2 of 2 1 2

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

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