- Nibbits
- StarCraft 2
- Maps
- Riley's Third Person Movement System
About
Example of an MMO-style third person camera and movement system.
http://www.youtube.com/watch?v=1IXYv-auwp8
http://www.youtube.com/watch?v=FMmqle0Wjso
All movement is relative to the current ...
Example of an MMO-style third person camera and movement system.
All movement is relative to the current view. Any movement keys may be combined.
W - Move forward
A - Strafe left
S - Move backward
D - Strafe right
To rotate the view, hold down the right mouse button and move the mouse. You can also move while using mouselook.
Movement is implemented by calculating a velocity vector in object-space for the player based on whatever keys are currently pressed and then converting it to polar coordinates, and concatenating the resulting angle with the camera angle to get a movement direction in worldspace. Periodically (every 50 ms in this demo) a target point is calculated by extruding the unit's current position on the direction vector, and the unit is issued an order to move to that point.
Feel free to use this in your own maps, the entire system is modular and you can actually just copy & paste the triggers to add this to any map. All you need to do is call the "Assign Player Control" function to give a player direct control over a unit.
Reviews (Submit a Review)
Log in and reach level 3 to submit a review for this map.
Related
Meta
- Categories:
- (No categories yet)
- Author:
- Riley 2
- Filename:
- Riley's Third Person Movement System.SC2Map
- Latest Version:
- Riley's Third Person Movement System
- Type:
- StarCraft 2 Map
- Size:
- 74.6 KB
- Overall Rating:
-
4 / 5 (1 votes, ranked #1,267) - Tags:
- (No tags yet)
- Players:
- N/A
- Tileset:
- Korhal
- Dimensions:
- 128x128
- Favorites:
- 0
- Downloads (Total):
- 762
- Downloads (Daily):
- 1 (ranked #164)
- Submitted By:
- Riley 2
- Discovered On:
- May 12, 2010
Share Map
- JavaScript Widget:
-
Riley's Third Person Movement System
Riley's Third Person Movement System.SC2Map (74.6 KB)
- Released:
- May 12, 2010
- Downloads:
- 842
- Direct Link:
Rating
- Opinion:
1 vote considered -
- Neutral
Neutral
Your Rating
If you were logged in you could rate this.
Achievements
- Featured May 13, 2010
User Comments
Support Nibbits by linking to us:
Explain further what you need to change for it to work with my map. I changed every 'player/unit' trigger I found with unspecified units/players to the player/unit I wanted. Still didn't work. Thx :)
217.175.114.xxx
I tried it out, it works fine.
I can't wait for highquality rpgs on SC2 and perhaps WOS via saving player data on the system.
But a couple of pointers,
-Disable map scroll.
-Give collision to camera?
Otherwise great work!
66.75.12.xxx