Anoter Camera ??

Posted By: DanielTruong

Anoter Camera ?? - 07/30/09 03:28

Hi Everyone!
I'm a newbie in 3DGS ! and I have some question :

1. How to Uses VIEW Camer2 {...} like a sub camera to see the enemy in 200x300 and post it at the left conner of the Screen ?

2. What is Camera.Stage in C-Scrip ?? I want to make the light ray effect !

thanks !
Posted By: DanielTruong

Re: Anoter Camera ?? - 08/02/09 07:51

anyone ???
Posted By: Ottawa

Re: Anoter Camera ?? - 08/02/09 14:34

Hi1

Welcome to the forum.

Are you working with Lite-C or C-script? There is a difference.

There are the AUM magazines that have this information. But I
don't remember which one. You'll have to read a few wink
Posted By: Germanunkol

Re: Anoter Camera ?? - 08/02/09 18:36

Try this:

Code:
VIEW* camera2 =
{ 		
  layer = 10;
  pos_x = 0;
  pos_y = 0;
  size_x = 64;
  size_y = 48;
  arc = 45;
  aspect = 1;
  ambient = 10;
  fog = 10;
  genius = NULL;
  flags = SHOW;
}


//give your enemy this function to run:
action enemy_action()
{
  VECTOR temp:
  while(1)
  {
    vec_set(camera2.x,vector(-1000,0,100));
    vec_add(camera2.x,my.x);

    vec_diff(temp,my.x,camera2.x);
    vec_to_angle(camera2.pan,temp);
    
    wait(1);
  }
}


© 2024 lite-C Forums