HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

RPG camera ?

12-21-2006, 05:46 AM#1
Leopard
Im making a new RPG and want the cam to follow my hero, how to do it?. And want to do this for all others players also, plx help, thanks.
And one more question, i want to use the fog effect for my map [not the shit region's dungeon fog] but i can't find it anywhere. There is an option in map's scenario .[i chose the white color, then my map is only a white curtain, hixx]
12-21-2006, 08:32 AM#2
Captain Griffen
Camera - Lock camera to target.
12-21-2006, 12:05 PM#3
Toadcop
here some example of good 3d person camera
http://xgm.ru/forum/attachment.php?attachmentid=10982
then in game enter "-cam" in chat !
12-22-2006, 05:02 AM#4
Feroc1ty
Trigger:
Camera
Collapse Events
Time - Every 0.50 seconds of game time
Conditions
Collapse Actions
Collapse For each (Integer A) from 1 to 8, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
HeroOwned[(Integer A)] Equal to True
Collapse Then - Actions
Camera - Lock camera target for (Player((Integer A))) to Hero[(Integer A)], offset by (0.00, 0.00) using Default rotation
Camera - Set (Player((Integer A)))'s camera Rotation to (Facing of Hero[(Integer A)]) over 1 seconds
Else - Actions

Uses 2 variables, sugest you make that period trigger for anything else you need too.
Hero = Unit (The unit you want to player to have camera around)
HeroOwned = Boolean(Checks if the player has a hero, if not, it doesnt do anything, sugest you when unit is created for player make it, last created unit = hero, and herowned=true.)


Edit: over 1 second might seem a bit slow, but its really smooth that way.
12-23-2006, 12:32 AM#5
Leopard
JOKES - ON -YOU. thank you very much, yes, thats what i need, friend ^^.
One more question. my map has 4 team, and now i want to make an event which require all players to join a team. after it, i want them to return to their former teams [4 teams]. how to do that?
12-23-2006, 02:37 AM#6
Feroc1ty
I dont really understand the question, can you please rephrase it?
12-23-2006, 04:09 AM#7
Leopard
Well. my map is an arena. it has 4 force. after a certain time. i want to pick all gladiators and add them to a team for an event[which make them treat all others heroes as friends]. And when the event ends, I want to return each hero to their original force.[4 force as i said] which 1 force treats other 3 forces as enemy.
12-23-2006, 07:53 AM#8
Pyru
Just use "Player - Set Alliance", and if you have to: "Player - Change Color".
I don't think there is any reason to go through the trouble of trying to find a way to change the "Forces" of the players as the game recognizes them through triggers (if there is a way at all, since I didn't find any) when you can just change their behavior towards another.