How to Make a Unit Jump up/down Cliffs AKA Upgrades Basic Tutorial
Hi all, sorry its been a while since the last update.
I have been playing around recently with all the different options from the editor and I decided to borrow a few concepts from other maps into my own.
I borrowed WASD movement and the basic jump from a map called WoSTeaser on Scmapster, and I borrowed the concept of shooting missiles from a map called topdownshooter, also on scmapster. Thanks guys!
I then decided to take that concept further and come up with a way for a ground unit to jump up cliffs. This is harder than it seems, as simply changing the units height doesn’t automatically allow it to scale over a cliff. You also can’t just set the unit to collosus ground mover, because it will scale the cliff like there is an invisible ramp underneath it. It just doesn’t look right. Thanks to advice from a fellow named Zoator on the beta map forums I was able to come up with a formula that works. Here is a video with it in action:
So how did I do this? Using Zoator’s advice, I decided to create two upgrades. These upgrades are used to keep track of whether or not a unit is allowed to cross over a cliff. Within the unit itself there is a property called “mover”. This tells a unit where it can and can’t go. There are two special movers that we will toggle back and forth between. One called “ground” and the other called “colossus”. (Yep, the same mover the colossus unit uses)
Upgrades themselves are pretty simple compared to other data editor objects, as they only contain a small amount of data. To make it even easier, I copied the upgrade that gives battle cruisers 25 starting energy.
1) In the data editor, right click on Battlecruiser – Starting Energy (or something to that affect) and click duplicate object.
2) With the duplicate selected, double click on it to rename it. I simply call the first one marinejump off.
3) When finished, navigate to the right and double click on where it says Effects +. Make it look like this, where marine is your unit that you want to allow to jump over cliffs.
4) Repeat steps 1 through 3, calling it marinejump on and setting the mover to colossus. It should look like this:
Cool. We now have two upgrades for the marine unit that will allow it to toggle between walking over cliffs and not being able to walk over them. So how do we do this?
Using the jump trigger from WoSTeaser, we will add a few new lines. The end result will look something like this:
gMovementUnit is assigned to marine, so it has the same effect as if you just set it to the unit itself.
If you haven’t already, check out:
http://www.sc2mapster.com/maps/smooth-3rd-person-movement/
for smooth WASD and jump triggers.
In case any of you are having any problems with the triggers, here is my source map. Sorry if it is a little messy, I have been doing a lot of experimenting in it. This map also has, what I think, is a really cool camera view.
Related posts:





Is it possible for the Marine to walk off the cliff besides jumping?
Yes, you just need to set its mover to colossus in the data editor. It doesn’t look quite right though, as it will walk down the cliff like an invisible ramp is there.
While working on platforming, I noticed two harder problems that I’m wondering if you found ways around:
1) If you have a higher ledge (say a cliff on a cliff), you can’t get up it even if you jump high enough; that is, you have to be on a cliff level exactly one lower than the destination, any lower and the mover won’t recognize it.
2) Still can’t find a way to make platforms that you can both walk on top of as well as under. Haven’t been able to get the bridges to work for this either.
Tried changing the upgrade to bestow flying instead, but no luck. Actually, that killed all platforming reaching completely. Any workarounds found for these?
there is currently no way of making bridges (cross over/cross under) or anything like it.
this has to do with the one level pathfinding, its basicly you can or you cant walk there. (not you can walk there on different levels)
some ppl say blizzard will make multilayered pathfinding, but im not sure when and if. i would use layers behind eachother as shown in the video above.
Nice blog and very good tutorial.Very useful tutorial I found on http://www.starcraft2videos.com. Go and see,very useful.Enjoy!
You can make a marine fall off a platform. Only way to do it though is to interpose a gravity engine. With that though, you can have falling damage and all that.
Make a basic platformer – place the marine on the side and to use multi-layered platforms – use them as actual cliffs in different areas, so the marine isn’t walking on the ground; rather, at the side of a bunch of cliffs.
This was accomplished in warcraft 3.
Hi!
Sorry I write you via comments. But I could not find contact e-mail or feedback form on your site.
My name is Evan Hubert and I represent Gelbert Agency. We are making an advertising campaign for Lacoste Company (it is a French company producing clothes, footwear, perfumery etc.) and we would like to place their banner at your site http://www.sc2galaxyeditor.com. We are interested in banners of the following sizes: 160×600, 240×400, 300×250, 336×280, 468×60, 728×90. What can be your price for one banner (banner should appear at ALL pages of your site) of abovementioned sizes (please specify the place for the banner – top, bottom, left, right)? Please mention a normal link for banner, without javascript code and set prices in US dollars per month.
P.S. Please, delete this comment.