HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

bubbles O.o

06-18-2006, 12:05 AM#1
map-maker
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
PipeDream
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, 01:07 AM#3
map-maker
i had a trigger that i dont even know if it worked but it was just too inprobable in using it...considering i would have to make a seperate one for each unit and using lots of arrays and thigns that i could do in jass using locals but i just dont know how...this is what i want it to do though.

when a unit is in the underwater zone he is marked as being underwater and has bubbles attached to his head to make him look like hes breathing. what i want is for bubbles to be placed on the "surface" at the "same" point as where he is underwater like so:

guy underwater:
Zoom

what units on the surface see:
Zoom

ok thats for units underwater. what i also want is basically units above ground make a "shadow" underwater at the "same" point there are standing on the surface like:

guy on the surface:
Zoom

what units underwater see:
Zoom

i hope that helps people understand what i mean
06-18-2006, 02:21 AM#4
Rising_Dusk
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
map-maker
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
blu_da_noob
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
map-maker
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!