Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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,209
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,209
İ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 | 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