| 05-14-2004, 07:22 PM | #1 |
How does the Sliding Trigger work? i cant figure it out. I want the unit to slide towards your hero smoothly, right now im using the move unit instantly and it lags, and looks like shit. So, help me out! |
| 05-14-2004, 08:10 PM | #2 | |
Quote:
|
| 05-14-2004, 10:54 PM | #3 |
Units can't slide. The only way to make them "look" as if they're sliding is if you are viewing a unit at a faraway distace at a particular angle. Then you use the Unit - Move unit instantly trigger. Example: x = The camera y = The unit o = Region x o o o o o o o y Kinda like this, although I've never tried to make units have a "slide effect". |
| 05-15-2004, 12:46 AM | #4 | |
Quote:
ON TOPIC, I think you should do a loop, and just make the unit play an animation and just 'slide' across smoothly... Hrmm, that made no sense... I'll get back to you. |
| 05-15-2004, 12:56 AM | #5 |
And if moving lags, it is obviusly because of point leaks, cause last 2 weeks would lag as hell if everytime moving unit instantly lagged |
| 05-15-2004, 01:35 AM | #6 |
where did you see a sliding unit? i just know my own escape map where i did some "water slides" but they works whitout any loops |
| 05-15-2004, 12:43 PM | #7 | |
Quote:
If you have WEU there is a sliding trigger under advanced in triggers. and i saw a unit slide in the 11th hour map on Bnet. The naga unit uses an ability and it shoots your target backwards and stuns it, its pretty cool. But, i have no idea how it works, so im gonna go play around with it some more. if you guys know anything please tell me. Thanks! |
| 05-16-2004, 08:44 PM | #8 |
I had this map wit sliding units, butsince i moved i lost them. What i would try is trigger anim speed0 when the unit is struck and order it to move backwards wit triggs |
| 05-17-2004, 07:11 PM | #9 | |
Quote:
that might work, ill go test it |
| 05-17-2004, 08:40 PM | #10 | |
Quote:
Physics lesson out of the way, as a last resort get an animator to make a sliding anim for the unit. this is only feasible however if the sliding unit is always the same. |
| 05-17-2004, 08:45 PM | #11 |
You can make a unit appear to slide by using a count down timer with a 0.01 duration and moving the unit from the current position to a point with offset (the units current point + a small value, say 10). Of coruse you would need some knowledge and fix the memory leak with points, but doing a loop with the count down timer, and following this will appear to make the unit slide, it was done before in a few cinematics i seen. Im guessing this is how it was done... |
| 05-17-2004, 10:21 PM | #12 |
How do you use WEU's sliding trigger? I dont see an action for it to stop the sliding. |
| 05-17-2004, 11:58 PM | #13 |
Well.. here's a way to do sliding.. I wanted to practice JASS so I made a moonwalk map. :o I left a few comments in case you decide to use it... (BTW if you want it to stop at a certain point rather than terminate when a duration has been met, put an if/then/else in the trigger that runs every .01 that is if distance between end and udg_TargetPoint(set it in your main trigger, or wherever you turn on the slide trigger) is less than or equal to 25 or whatnot then turn off this trigger else do nothing Make sure that is put in AFTER the locals are declared.) |
