Staredit Newtork
Community
StarCraft
Games
Site
Favourites
 
Play a sound when a unit walks
In a map where the player only controls one unit, playing footstep sounds when that unit walks can make a nice aesthetic touch. This can be done by detecting when a unit moves and playing a sound. To detect when a unit moves you will need to use a location. Generally you will want this location to be small so it can detect movement more accurately.

As an example, we will have a Marine and a location named 'Footsteps'. Consider the following trigger:
Quote from Trigger
Conditions:
Current Player brings exactly 0 Marine to 'Footsteps'.

Actions:
Preserve trigger.
Play 'Footstep sound'.
Center location labeled 'Footsteps' on Marine owned by Current Player at 'Anywhere'.
The basic form of this system is very simple. You can add complexity by using different footstep sounds for different areas of your map (such as metal in one area and dirt in another). You can also introduce randomization to make it sound more dynamic.
For this to work well, you'll also want to use Hyper triggers.

This map Unit Sounds - Brontobyte uses this method and plays a sound when you move your Terran Marine. It also includes the "foot step" sounds.


[09:17 pm]
Falkoner -- Even if I have a 1280x1024 monitor, I still like a smaller size, it's annoying reading across a massive screen
[09:16 pm]
Falkoner -- Much easier on the eyes, <3 the margins
[09:16 pm]
Falkoner -- Yeah, I've always used it
[08:48 pm]
madroc -- Wow the carbonite skin is nice
[08:36 pm]
[lil-Inferno]:] -- LOL C'E QUE
[08:33 pm]
Corbo[MM] -- contrary that we CAN do stuff that you can't :P
[08:33 pm]
Corbo[MM] -- what can you do that we can't?
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions