Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 692 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
camera path #286779
08/27/09 10:59
08/27/09 10:59
Joined: Jul 2009
Posts: 150
B
Blackchuck Offline OP
Member
Blackchuck  Offline OP
Member
B

Joined: Jul 2009
Posts: 150
how can I make a camera that moves path in lite-c???


I have know Gamestudio/A7 Commercial Edition 7.84
Re: camera path [Re: Blackchuck] #286984
08/28/09 17:08
08/28/09 17:08
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline
Member
XD1v0  Offline
Member

Joined: Jun 2008
Posts: 151
Ukraine
Easy way to make path is use entities, every entity is a node, set my.parent to next entity node for each entity laugh


A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: camera path [Re: XD1v0] #287048
08/29/09 15:00
08/29/09 15:00
Joined: Jul 2009
Posts: 150
B
Blackchuck Offline OP
Member
Blackchuck  Offline OP
Member
B

Joined: Jul 2009
Posts: 150
Thats an good idee!!
Pleace tell me what I did wrong, I tryed to wright it in lite-c.


ENTITY* cam;

var center;
var max_speed = 7;

action fly_camera()
{
clip_size = 0;

vec_set (center, my.pos);

set(my,INVISIBLE);
set(my,PASSABLE);

camera.visible = off;
cam.tilt -= 20;
cam.pos_x = 0;
cam.pos_y = 0;
cam.size_x = screen_size.x;
cam.size_y = screen_size.y;
ent_path("campath");
ent_waypoint(my._target_x, 1);

my.x = my._target_x;
my.y = my._target_y;
my.z = my._target_z;

cutcamera.visible = on;

while(1)
{
cutcamera.x = my.x;
cutcamera.y = my.y;
cutcamera.z = my.z;
cutcamera.pan = my.pan;

vec_set(max_speed, my._target_x);
vec_sub(max_speed, my.x);

if (vec_to_angle(my.pan, max_speed);
{
ent_nextpoint(my._target_x);
}
}
}


I have know Gamestudio/A7 Commercial Edition 7.84
Re: camera path [Re: Blackchuck] #287071
08/29/09 19:48
08/29/09 19:48
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

You have to many C-Script code.

In the manual check the section on Migration. wink


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: camera path [Re: Ottawa] #287079
08/29/09 20:11
08/29/09 20:11
Joined: Jul 2009
Posts: 150
B
Blackchuck Offline OP
Member
Blackchuck  Offline OP
Member
B

Joined: Jul 2009
Posts: 150
How do you wright this in lite-c?

"vec_set (center, my.pos);"


Last edited by Blackchuck; 08/29/09 20:16.

I have know Gamestudio/A7 Commercial Edition 7.84
Re: camera path [Re: Blackchuck] #287082
08/29/09 20:26
08/29/09 20:26
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Maybe you mean:
Code:
vec_set(camera.x,vector(0,0,0));



Re: camera path [Re: Cowabanga] #287115
08/30/09 07:38
08/30/09 07:38
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
your while loop has no wait

Re: camera path [Re: badapple] #288035
09/03/09 18:19
09/03/09 18:19
Joined: Jul 2009
Posts: 150
B
Blackchuck Offline OP
Member
Blackchuck  Offline OP
Member
B

Joined: Jul 2009
Posts: 150
oh...


I have know Gamestudio/A7 Commercial Edition 7.84

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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