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
1 registered members (AbrahamR), 717 guests, and 4 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
Anoter Camera ?? #282048
07/30/09 03:28
07/30/09 03:28
Joined: Jun 2009
Posts: 12
D
DanielTruong Offline OP
Newbie
DanielTruong  Offline OP
Newbie
D

Joined: Jun 2009
Posts: 12
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 !

Re: Anoter Camera ?? [Re: DanielTruong] #282562
08/02/09 07:51
08/02/09 07:51
Joined: Jun 2009
Posts: 12
D
DanielTruong Offline OP
Newbie
DanielTruong  Offline OP
Newbie
D

Joined: Jun 2009
Posts: 12
anyone ???

Re: Anoter Camera ?? [Re: DanielTruong] #282603
08/02/09 14:34
08/02/09 14:34
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
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


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Anoter Camera ?? [Re: Ottawa] #282638
08/02/09 18:36
08/02/09 18:36
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
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);
  }
}




~"I never let school interfere with my education"~
-Mark Twain

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