Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TedMar), 1,398 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
camera type #270338
06/07/09 18:59
06/07/09 18:59
Joined: Aug 2008
Posts: 153
Germany,Stuttgart
kwpsp Offline OP
Member
kwpsp  Offline OP
Member

Joined: Aug 2008
Posts: 153
Germany,Stuttgart
Hey guys,
I've a problem. I've tried to make a camera in this type, but I didn't it.
Can you help me?


kwpsp


My system:
- Core 2 Quad 6600(4x 2,4GhZ)
- 2GB Ram
- GeForce 7050(:-))
- Windows seven
Re: camera type [Re: kwpsp] #270344
06/07/09 19:52
06/07/09 19:52
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
vec_set(camera.x,my.x);
camera.x -= 100*cosv(camera.pan);
camera.y -= 100*sinv(camera.pan);

camera.pan += mouse_force.x*time_step*10;

100 is camera distance, 10 is camera pan speed. my is the entity that camera is fixed to.

untested

Last edited by Quadraxas; 06/07/09 19:52.

3333333333
Re: camera type [Re: Quad] #270355
06/07/09 20:32
06/07/09 20:32
Joined: Aug 2008
Posts: 153
Germany,Stuttgart
kwpsp Offline OP
Member
kwpsp  Offline OP
Member

Joined: Aug 2008
Posts: 153
Germany,Stuttgart
I'll test it
thx


My system:
- Core 2 Quad 6600(4x 2,4GhZ)
- 2GB Ram
- GeForce 7050(:-))
- Windows seven
Re: camera type [Re: kwpsp] #270584
06/08/09 21:05
06/08/09 21:05
Joined: Aug 2008
Posts: 153
Germany,Stuttgart
kwpsp Offline OP
Member
kwpsp  Offline OP
Member

Joined: Aug 2008
Posts: 153
Germany,Stuttgart
It didn't work for me, Can anyone help me?
thx
kwpsp1
my free_camera code:
action free_camera
{
my.invisible = on;

while (1)
{
my.pan -= 10 * mouse_force.x * time_step;
my.tilt += 10 * mouse_force.y * time_step;

c_move(my,vector ((key_w-key_s)*30*time_step,(key_a-key_d)*30*time_step,0),nullvector,IGNORE_PASSABLE|GLIDE);

vec_set(camera.x, my.x);
vec_set(camera.pan,my.pan);

wait(1);
}
}


My system:
- Core 2 Quad 6600(4x 2,4GhZ)
- 2GB Ram
- GeForce 7050(:-))
- Windows seven
Re: camera type [Re: kwpsp] #270593
06/08/09 22:21
06/08/09 22:21
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline
Senior Member
MPQ  Offline
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
As Quadarxas wrote before, you need a sin-cos-function (trigonometrical function --> look up AUM34 car AI)


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: camera type [Re: MPQ] #270801
06/10/09 04:30
06/10/09 04:30
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
look on my website for that


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com

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