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
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 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
Move effect #303536
12/29/09 19:41
12/29/09 19:41
Joined: Dec 2009
Posts: 74
Romania,Bucharest
Ted22 Offline OP
Junior Member
Ted22  Offline OP
Junior Member

Joined: Dec 2009
Posts: 74
Romania,Bucharest
How can o make my camera move when i press a key,but without teleporting!Moving slowly to my specific coords...For example as i press right mouse button my camera moves a bit forward.

Last edited by Ted22; 12/29/09 19:52.
Re: Move effect [Re: Ted22] #303542
12/29/09 20:04
12/29/09 20:04
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
read the lite-c workshops before asking this stuff.

http://tutorial.3dgamestudio.net/


3333333333
Re: Move effect [Re: Quad] #303586
12/30/09 10:38
12/30/09 10:38
Joined: Dec 2009
Posts: 74
Romania,Bucharest
Ted22 Offline OP
Junior Member
Ted22  Offline OP
Junior Member

Joined: Dec 2009
Posts: 74
Romania,Bucharest
I have read them...tell me the workshop where i can find help.

Re: Move effect [Re: Ted22] #303599
12/30/09 12:32
12/30/09 12:32
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Workshop 18.
Use a little entity, make it invisible. Set in a while loop the camerapos to the entity and now you can move this entity as in the workshop explain.
Read also the AUM`s, very good code snippets inside...

Hope that helps

Re: Move effect [Re: Widi] #303600
12/30/09 12:42
12/30/09 12:42
Joined: Dec 2009
Posts: 74
Romania,Bucharest
Ted22 Offline OP
Junior Member
Ted22  Offline OP
Junior Member

Joined: Dec 2009
Posts: 74
Romania,Bucharest
Thanks but i just found a way telling the camera to move and when reach a coord stop laugh

Re: Move effect [Re: Widi] #303603
12/30/09 12:53
12/30/09 12:53
Joined: Mar 2007
Posts: 112
MikeS Offline
Member
MikeS  Offline
Member

Joined: Mar 2007
Posts: 112
Hi, got a sollution for you, without using an additional entity.

You can move the camera directly, by changing its vector.

heres the tested code:

Code:
function camera_move_test()
{
var move_t[3];
move_t.x = 5;
move_t.y = 0;
move_t.z = 0;
while(1)
{
if (key_cuu == 1)
{
vec_add(camera.x,move_t.x);
}
wait(1);
}
}



this code is only for moving forward.
if u need other directions, make new vectors, which u can add.

If questions, u can pm me too.

Greetings

Mike


Moderated by  HeelX, rvL_eXile 

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