• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

I want to flip the camera

Status
Not open for further replies.
Level 11
Joined
Mar 31, 2009
Messages
732
I want to have the game be viewed from the top down, instead of the way it is. So essentially, I want to be able to trigger the rotation of the game, for a player.
I tried using rotate camera around a point, but it just fixes the camera on that point. I want the camera to be freely moved around as normal, just viewing the game from the other direction.
 
If I got it right, you want something like this:

op.jpg

I know you want Jass, but this is a GUI example:
  • Trigger1
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
  • Actions
    • Player Group - Add (Owner of (Triggering unit)) to Temp_Force
    • Trigger - Turn on Trigger <gen>
  • Trigger
  • Events
    • Time - Every 0.03 seconds of game-time
  • Conditions
  • Actions
    • Player Group - Pick every player in Temp_Force and do (Actions)
      • Loop - Actions
        • Set CameraRotation[Player Number of (Picked Player)] = (CameraRotation[Player Number of (Picked Player)] + 3.00)
        • Camera - Set (Picked Player)'s camera Rotation to (CameraRotation[Player Number of (Picked Player)]) over 0.00 seconds
 
Level 11
Joined
Mar 31, 2009
Messages
732
Ehh, I'm not sure what you mean. Do you mean viewing literally from the opposite direction? (where 90 degrees is the normal rotation and 270 is the opposite)
JASS:
call SetCameraField(CAMERA_FIELD_ROTATION,270,3) //example

It will still be movable while it rotates.

Or are you looking for something else?

Hmm. Yeah. Thats it exactly. Cool.

Um. Any way to make the minimap rotate with it? And any way to make the camera just 'snap' to the direction, instead of the slow rotation it does?
 
Damn. :(

Thanks though!

Edit: Ughh, if I spin my scroll wheel, it flips the camera back again :(

Use a periodic timer/event to set the rotation to 270 constantly. If you need to be able to disable it, you can just use a global boolean. Just run a check for setting the rotation and set the boolean to false if you ever need to disable it.
 
Status
Not open for further replies.
Top