| 06-18-2006, 12:05 AM | #1 |
only thing i could think of for the title XD. anyway what im trying to do in my map is if you read my thread in the terraining forum it has to do with underwater...basically there is a surface of the water and a below water area...i have it working fine that you can go underwate at the same point you were above water and all that but what i want to do is make it so people above the water make a shadow appear underwater at the point they are above the water and people below the water make bubbles on the surface of the water where they are underwater...if that makes sense. i have it so it kinda works but i would have to make a trigger for each player and i am thinking it might leak...so can someone help me try to put this into only one trigger, one for each, shadow and bubbles using local variables to do so. the translation from the surface to the underwater part is about -3100(going from surface to underwater, + if going from underwater to surface) in the Y value and the same as the units X in the X value. if someone knows a way to do this please help ^^ |
| 06-18-2006, 12:49 AM | #2 |
Need way more details about what you want. If you have a trigger that works with some specific problem, post that and we can work on fixing it. Otherwise take screenshots and paint in what you're visualizing. |
| 06-18-2006, 02:21 AM | #4 |
I suggest jass, then making a conversion from the X/Ys of the top to the X/Ys of the bottom and vice versa (In one function with a boolean as an argument to decide which). Then you're going to need to attach the shadow dummy unit as an attached variable to the actual unit on the 'surface'. (Attach the bubbles dummy unit to the actual unit underwater) Then, whenever a unit changes from underwater to surface or vice versa, flip the attached dummy to the other appropriate thing and do all calculations, etc. To be fair, a perfect, working system for this wouldn't be an easy feat to accomplish. But I highly recommend jass so that it makes more sense and is easier to work with. *NOTE* My way is probably not the only way to do it, but it would work. |
| 06-18-2006, 02:30 AM | #5 |
hmm ill try that...i know a little jass but looks like im going to have to learn some more XD |
| 06-18-2006, 07:18 AM | #6 |
Basically, Dusk seems to have it. You're going to need dummy units with the effect you want attached (or just the shadow) and find the correct position for them by transposing the coordinates from one area to another. |
| 06-18-2006, 01:15 PM | #7 |
ya i think i figured out a good way to do this or atleast i THINK XD well ill post my progress once i make some. thanks for the help guys! |
