x


Changing Camera

I'm making an overhead platformer that has 2 players at once. I have my Main camera over the two players at the start. I want to make it so that when they hit a certain zone it will switch cameras. Can someone please help me with this. Thanks :)

more ▼

asked Aug 26 '11 at 11:45 PM

coolkid115 gravatar image

coolkid115
1 2 2 3

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

To change cameras:

camera1.gameObject.active = false;
camera2.gameObject.active = true;

to detect entering a zone, OnTriggerEnter is one way.

more ▼

answered Aug 27 '11 at 12:13 AM

Waz gravatar image

Waz
6.5k 22 33 71

Im new to Java, do you have a full script I could use for future reference. I'm a slow learner ::P

Aug 27 '11 at 12:23 AM coolkid115

How about you make an attempt and then we help you learn what you are doing?

Aug 27 '11 at 01:41 AM Waz

I tried, Its like when the player enters a certain area the camera will change. I cant get it to work :( sorry.

Aug 27 '11 at 03:47 AM coolkid115

What did you try that didn't work?

Aug 27 '11 at 11:16 AM UdevMike

I tried using the onTrigger Enter script. But I dont know how to write it.

Aug 27 '11 at 07:09 PM coolkid115
(comments are locked)
10|3000 characters needed characters left

ONLINE STORE :

====( http://popbuynow.com/ )=====

The website wholesale for many kinds of fashion shoes, like the nike,jordan,prada,****, also including the jeans,shirts,bags,hat and the decorations. All the products are free shipping, and the the price is competitive, and also can accept the paypal payment.,after the payment, can ship within short time.

free shipping

competitive price

any size available

accept the paypal

jordan shoes $32

nike shox $32

Christan Audigier bikini $23

Ed Hardy Bikini $23

Smful short_t-shirt_woman $15

ed hardy short_tank_woman $16

Sandal $32

christian louboutin $80

Sunglass $15

COACH_Necklace $27

handbag $33

AF tank woman $17

puma slipper woman $30

====( http://popbuynow.com/ )=====

more ▼

answered Aug 27 '11 at 12:34 PM

cvgwegwegwe gravatar image

cvgwegwegwe
0

Why they don't kick this user?

Dec 12 '12 at 04:07 PM Rond
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3014
x380
x25

asked: Aug 26 '11 at 11:45 PM

Seen: 4514 times

Last Updated: Dec 12 '12 at 04:07 PM