HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Problem with cameras

09-29-2007, 12:59 AM#1
Black Mamba1
Hello,
I've got a problem with the cameras,
I got four triggers for my map that look like this:
Trigger:
Trigger 1 (Initally off)
Events
A unit Begins casting an ability
Conditions
(ability being cast) Equal to "Down"
Actions
Apply game camera "Middle" <gen> for Player 1 (Red) over 2.00 seconds
Turn on "Camera B Movement Up <gen>
Turn on "Camera B Movement Down <gen>
Turn off (This Trigger).
------------------------------------------------------------------------
Trigger 2 (Initially on)
Events
A unit Begins casting an ability
Conditions
(ability being cast) Equal to "Up"
Actions
Apply game camera "Left" <gen> for Player 1 (Red) over 2.00 seconds
Turn off "Camera B Movement Down <gen>
Turn on "Camera A Movement Down <gen>
Turn off (This Trigger).
------------------------------------------------------------------------
Trigger 3 (Initally On)
Events
A unit Begins casting an ability
Conditions
(ability being cast) Equal to "Down"
Actions
Apply game camera "Right" <gen> for Player 1 (Red) over 2.00 seconds
Turn off "Camera B Movement Up <gen>
Turn on "Camera C Movement Up <gen>
Turn off (This Trigger).
------------------------------------------------------------------------
Trigger 4 (Initally Off)
Events
A unit Begins casting an ability
Conditions
(ability being cast) Equal to "Up"
Actions
Apply game camera "Middle" <gen> for Player 1 (Red) over 2.00 seconds
Turn on "Camera B Movement Up <gen>
Turn on "Camera B Movement Down <gen>
Turn off (This Trigger
Could somebody please help me with this ^^^
09-29-2007, 08:50 AM#3
Toadcop
yeah i am Cotton Mouth xD prepare your self.

+ and yes whats the problem ? =)
09-29-2007, 09:03 PM#4
Black Mamba1
Ok, well "Up" is ment to go right and "Down" is ment to go left, the problem is when is us "Up" or "Down" they both go to the left, I think it is a trigger based problem.
09-29-2007, 11:50 PM#5
Monky-Master
Exactly, what does the trigger do? Move the screen left and right? You'd only need two triggers, one that makes it go left, and one that makes it go right. This is taken from my camera system, but, I think it suits your needs. Just modify the events and conditions in my first trigger to your specifications and same with the second one.

Trigger:
Left
Collapse Events
Player - Player 1 (Red) Presses the Left Arrow key
Player - Player 2 (Blue) Presses the Left Arrow key
Player - Player 3 (Teal) Presses the Left Arrow key
Player - Player 4 (Purple) Presses the Left Arrow key
Player - Player 5 (Yellow) Presses the Left Arrow key
Player - Player 6 (Orange) Presses the Left Arrow key
Player - Player 7 (Green) Presses the Left Arrow key
Player - Player 8 (Pink) Presses the Left Arrow key
Player - Player 9 (Gray) Presses the Left Arrow key
Player - Player 10 (Light Blue) Presses the Left Arrow key
Player - Player 11 (Dark Green) Presses the Left Arrow key
Collapse Conditions
Left[(Player number of (Triggering player))] Equal to False
Zoomed[(Player number of (Triggering player))] Equal to True
Collapse Actions
Set Left[(Player number of (Triggering player))] = True
Unit - Make Unit_Camera_Lock[(Player number of (Triggering player))] face ((Facing of Unit_Camera_Lock[(Player number of (Triggering player))]) + 1.00) over 0.00 seconds
Trigger:
Left Move
Collapse Events
Time - Every 0.03 seconds of game time
Conditions
Collapse Actions
Custom script: set bj_wantDestroyGroup=true
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Left[(Player number of (Picked player))] Equal to True
Collapse Then - Actions
Unit - Make Unit_Camera_Lock[(Player number of (Picked player))] face ((Facing of Unit_Camera_Lock[(Player number of (Picked player))]) + 1.50) over 0.00 seconds
Else - Actions
09-30-2007, 01:12 AM#6
Black Mamba1
Thx