Gamestudio Links
Zorro Links
Newest Posts
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
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 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
Page 2 of 2 1 2
Re: Very bad if [Re: falagar8] #230604
10/06/08 22:35
10/06/08 22:35
Joined: Aug 2008
Posts: 408
mi usa
sadsack Offline OP
Senior Member
sadsack  Offline OP
Senior Member

Joined: Aug 2008
Posts: 408
mi usa
Yes old man of the sea, It would be nice to turn all of that crap off.
Here is working code for two cameras.
Code:
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>

////////////////////////////////////////////////////////////////////

ENTITY* ship;

function camera_walking();
function camera_ship();
var look = 1;

action act_ship()
{
ship = me;
me.ambient = 10;
while(1)
{
if(look==1){camera_ship();}
if(look==0){camera_walking();}
 

 
if (key_z) {me.pan += 3*time_step;}
if (key_x) {me.pan -= 3*time_step;}
if (key_a){c_move (me,vector( 5,0,0),nullvector,NULL);}
if (key_s){c_move (me,vector( -5,0,0),nullvector,NULL);}
if (key_q){c_move (me,vector( 0,0,1),nullvector,NULL);}
if (key_e){c_move (me,vector( 0,0,-1),nullvector,NULL);}
if (key_c) {me.tilt += 3*time_step;}
if (key_v) {me.tilt -= 3*time_step;}
if (key_r) {me.roll -= 3*time_step;}
if (key_t) {me.roll += 3*time_step;}
if (key_o) {look=0;}
if (key_p) {look=1;}


wait(1);
}
}










function main()
{
	video_screen = 1;
	video_mode = 7;
	level_load ("place.wmb");
  
	
	ent_create("ship.mdl", vector(-900, 0, 0), act_ship);
	
   //ent_create("ship1.mdl", vector(200, 0, 0), NULL);
   
   //ent_create("docking.mdl", vector(0, 0, 0), NULL);

	

     
   
}
	


function camera_ship()

 {
 
 	
 vec_set(camera.x,ship.x);
  vec_set(camera.y,ship.y);
  vec_set(camera.z,ship.z);// move the camera together with the ship entity
  vec_set(camera.pan,ship.pan);	
 	
 	
}



function camera_walking()

{
	
	
vec_set(camera.x, vector(-300, 0, 0));	
	
	
	
}










I want to thank you all for youe help.
renny


I have A7 Commercial .............. Now I just need to learn how to use it

Re: Very bad if [Re: sadsack] #230615
10/07/08 02:11
10/07/08 02:11
Joined: Sep 2008
Posts: 66
falagar8 Offline
Junior Member
falagar8  Offline
Junior Member

Joined: Sep 2008
Posts: 66

Thank You.
And "The Old Man and the Sea"
is a very good book by Enrest Hemingway.




And I may be getting up there in the age area
but I'm young in mind and spirit. Unlike being a guido.



As long as you have some interests and hobbies.
And learning and using your mind. wink
3D Game Studio is one thing that does it for me.

Re: Very bad if [Re: falagar8] #230671
10/07/08 16:05
10/07/08 16:05
Joined: Jan 2008
Posts: 1,580
Blade280891 Offline
Serious User
Blade280891  Offline
Serious User

Joined: Jan 2008
Posts: 1,580
Just a quick note, you had before
else
{
if()
{

}
}
when you could of just done
else if()
{


}

Just a little tip wink


My Avatar Randomness V2

"Someone get me to the doctor, and someone call the nurse
And someone buy me roses, and someone burned the church"
Re: Very bad if [Re: Blade280891] #230687
10/07/08 19:01
10/07/08 19:01
Joined: Aug 2008
Posts: 408
mi usa
sadsack Offline OP
Senior Member
sadsack  Offline OP
Senior Member

Joined: Aug 2008
Posts: 408
mi usa
Thanks Blade,
Yes falagar8 Enrest Hemingway was one of my favorite writers when I was a kid.
Some one told me that you was very old, so I call you the old man of the sea.
Tell me what is it like to be old?????????
renny


I have A7 Commercial .............. Now I just need to learn how to use it

Page 2 of 2 1 2

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