Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
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
3 registered members (TedMar, AndrewAMD, fairtrader), 578 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
Bopping #134207
06/06/07 12:04
06/06/07 12:04
Joined: May 2007
Posts: 185
Netherlands
SurudoiRyu Offline OP
Member
SurudoiRyu  Offline OP
Member

Joined: May 2007
Posts: 185
Netherlands
Hey im trying to make my way trough scripting with examples and tutorials to learn much from the scripts.
Now i want to learn how to let the camera bop when im walking with my walking script.
I searched tutorials for this but didn't find any >.<
Maybe someone here can help me out with it ?

Thanks in advance,


-The Dragon's Eye is alway's watching you!-
Re: Bopping [Re: SurudoiRyu] #134208
06/06/07 12:09
06/06/07 12:09
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
first you have to look if you are walkin or not

maybe this:
if(key_a+key_d!=0&&key_a-key_d!=0)

i guess you set the cam before to a special position, so you just have to change it now

{
camera.z += 10*sin(total_ticks*0.5);//10 is the height, 0.5 is the speed
}

and that's it

Re: Bopping [Re: Scorpion] #134209
06/06/07 12:13
06/06/07 12:13
Joined: May 2007
Posts: 185
Netherlands
SurudoiRyu Offline OP
Member
SurudoiRyu  Offline OP
Member

Joined: May 2007
Posts: 185
Netherlands
hehe :O ok lol that's cool i understand the script only to bad i didn't came up with itself >.< but its ok i will learn it ^^

Thnx for the help ^^


-The Dragon's Eye is alway's watching you!-
Re: Bopping [Re: SurudoiRyu] #134210
06/06/07 12:20
06/06/07 12:20
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
or if this is a FPP camera... attach camera position to model vertex (top of the head f.e.) by vec_for_vertex function


action player_action
while(1)
{
vec_for_vertex(camera.x,me,189); //189 is example vertex number
camera.pan = my.pan;
camera.tilt = my.tilt;
wait(1)
}

Last edited by tompo; 06/06/07 12:26.

Never say never.
Re: Bopping [Re: tompo] #134211
06/06/07 12:25
06/06/07 12:25
Joined: May 2007
Posts: 185
Netherlands
SurudoiRyu Offline OP
Member
SurudoiRyu  Offline OP
Member

Joined: May 2007
Posts: 185
Netherlands
it is yes but the animation of the model isn't ready yet so it won't go up and down anyway thanks i can try that also when animation is ready ^^


-The Dragon's Eye is alway's watching you!-
Re: Bopping [Re: SurudoiRyu] #134212
06/07/07 12:23
06/07/07 12:23
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
i don't know if that is so good, because animations are never 100% smooth, so the cam-movement won't be smooth also...

Re: Bopping [Re: Scorpion] #134213
06/07/07 22:28
06/07/07 22:28
Joined: May 2007
Posts: 185
Netherlands
SurudoiRyu Offline OP
Member
SurudoiRyu  Offline OP
Member

Joined: May 2007
Posts: 185
Netherlands
hi have it working now with animation it isnt indeed very smooth but when ill do in max and convert it, it must be smooth ill try it later.


-The Dragon's Eye is alway's watching you!-

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