im working on a hack'n slay RPG which requires a view from top.
but i want my camera to follow my hero.
atm i have to use timers and pan camera action for that,
but it is not really nice imo.
Camera - Apply (Camera Object) for player (1) over (0.0) seconds with (Existing Velocity)% initial velocity, (0)% deceleration, and (Include Target)
Camera - Turn Camera Mouse Rotation On/Off(1, On)
Camera - Lock Camera Mouse Relative Mode On/Off(1, On)
Camera - (Follow) for player (1) (Unit group(Triggering Unit)) with the camera and (Clear Current Target)
In case this is not a triggering unit, add a global variable of the type Unit Group - e.g. cameraFollow
Make an action that adds your hero as unit in the Unit Group variable; cameraFollow
Replace TimeIbis' last action with:
Camera - (Follow) for player (1) (Unit group(cameraFollow)) with the camera and (Clear Current Target)
well i don't want mouse lock but thanks.
i also found that follow unitgroup but i really hope that blizz will also make such a function also for a single unit - better performance. xD
well thx! :D
hiho,
im working on a hack'n slay RPG which requires a view from top. but i want my camera to follow my hero. atm i have to use timers and pan camera action for that, but it is not really nice imo.
is there a better way to do it?
in wc3 this was VERY easy ...
Robbepop
There's a trigger to set the camera to a certain unit. O.o
@ThisIsSpoofed: Go
Camera - Apply (Camera Object) for player (1) over (0.0) seconds with (Existing Velocity)% initial velocity, (0)% deceleration, and (Include Target)
Camera - Turn Camera Mouse Rotation On/Off(1, On)
Camera - Lock Camera Mouse Relative Mode On/Off(1, On)
Camera - (Follow) for player (1) (Unit group(Triggering Unit)) with the camera and (Clear Current Target)
In case this is not a triggering unit, add a global variable of the type Unit Group - e.g. cameraFollow Make an action that adds your hero as unit in the Unit Group variable; cameraFollow Replace TimeIbis' last action with: Camera - (Follow) for player (1) (Unit group(cameraFollow)) with the camera and (Clear Current Target)
hiho,
well i don't want mouse lock but thanks. i also found that follow unitgroup but i really hope that blizz will also make such a function also for a single unit - better performance. xD well thx! :D
Robbepop
@Robbepop: Go
Great that it worked! I also hope Blizzard will add the simple action we had in the WC3 editor as it is alot better than going through all this.
http://forums.sc2mapster.com/development/map-development/11302-camera-object-rotation/#p13