• 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.

Shrinking the map boundaries made map looks weird

Status
Not open for further replies.
Level 25
Joined
Jul 10, 2006
Messages
3,315
Unfortunately not.

EDIT: Attached is a camera bound system I'm trying to make. If the camera leaves the set region, it is instantly moved back to the nearest point on the region.

It does have some quirks, though:
- It jumps a little when you attempt to move camera out of region
- You can click and drag the camera around on the minimap, and it will constantly switch between that target position and the nearest position on the bound many times a second
 

Attachments

  • CameraBound001.w3x
    18.9 KB · Views: 48
Last edited:
Unfortunately not.

EDIT: Attached is a camera bound system I'm trying to make. If the camera leaves the set region, it is instantly moved back to the nearest point on the region.

It does have some quirks, though:
- It jumps a little when you attempt to move camera out of region
- You can click and drag the camera around on the minimap, and it will constantly switch between that target position and the nearest position on the bound many times a second
Dude that solution was my salvation, wow that is so good! check if the camera looking away and pan the cam backward! wow that was impressive!
unfortunatly I don't have rep to give you, once I get some I will. :thumbs_up:
  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 4, do (Actions)
      • Loop - Actions
        • Set PlayerCameraBoundRegion[(Integer A)] = Region 001 <gen>
Is this the correct way to do it?
I mean, PlayerCameraBoundRegion[] <= here I put the player number that I want to set for each player?
 
Last edited:
Level 25
Joined
Jul 10, 2006
Messages
3,315
  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 4, do (Actions)
      • Loop - Actions
        • Set PlayerCameraBoundRegion[(Integer A)] = Region 001 <gen>
Is this the correct way to do it?
I mean, PlayerCameraBoundRegion[] <= here I put the player number that I want to set for each player?

Yep that's correct.
 
It's a pleasure :)

Does the ability to still drag your camera around on the minimap not bother you?

It did. You made it go each 0.03 seconds, this means 33 and 0.3 times a second (33 times, 33 times, 34 times) this is a lot so I changed it into 0.05 (20 times a second), this make no lag at all and totaly smoov and nice but in worst case I could make it go even slower (10 times a second) and I'm 100% sure that the player wouldn't be able to observe terrain which is not alloweded to look upon. oh and another thing: I changed the "all players" into a player group that then custum script removed, I think your variation is buged , want me to post the fixed version?
 
Status
Not open for further replies.
Top