Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 11:16
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (qin, 1 invisible), 4,305 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 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