Sprites
May 11 2008, 3:38 am
By: stickynote  

May 11 2008, 3:38 am stickynote Post #1



3 things I want to know. How do you stack sprites, how do you make sprites invisible (is that just disabling it?), and can you stack sprites on top of units.



None.

May 11 2008, 3:52 am Brontobyte Post #2



Quote from stickynote
How do you stack sprites,

In an editor, other then StarEdit, simply select your sprite and place it anywhere on the map, this includes stacking. With in-game you have to have a pre-placed sprite and then simply disable it (select the sprite -> properties -> disable) and then with a trigger disable it.

Quote from stickynote
how do you make sprites invisible (is that just disabling it?),

This can be done by enabling it, waiting 111ms, disabling it, wait another 111ms, disable it again, wait another 111ms, then give it to a human player and order it to a location. Note: It actually has to move 1 square.

Quote from stickynote
and can you stack sprites on top of units.

You will most likely have to center a 1 pixel sized location over top of the unit and then either order it, or use the move, teleport, trigger to constantly move it over the given unit. This works only with unit sprites, obviously it wouldn't work if you were trying to move a mechanical door over top of a unit. :P



None.

May 11 2008, 4:37 am Heimdal Post #3



I kinda regret the term "unit-sprites" - they behave much more like units than sprites.



None.

May 11 2008, 5:21 am DT_Battlekruser Post #4



What are they, from a memory standpoint?



None.

May 11 2008, 5:35 am Heimdal Post #5



In the map, they are stored in the THG2 section, like sprites. But when SC loads them, it creates a unit instead. There are definitely differences from normal units (like initial HP, etc) though.

If you're curious, traps and doors were the only types of unit-sprites Blizzard ever intended for use. When the unit is created, it can take some extra data from the THG2 entry, like if it's disabled or not.



None.

May 11 2008, 6:23 am Falkoner Post #6



Quote
This can be done by enabling it, waiting 111ms, disabling it, wait another 111ms, disable it again, wait another 111ms, then give it to a human player and order it to a location. Note: It actually has to move 1 square.

That can be done to anything, unit or sprite.

The only special thing about unit sprites is their ability to begin in a disabled state(You can see some effects of this here.) and their ability to stack, simply enabling a preplaced disabled sprite will allow it to walk around and other units can pass through it, although it cannot pass through them.



None.

May 11 2008, 12:18 pm Brontobyte Post #7



I also noticed while I was making this Cloaked Units Pack that you can either have it disabled (cloaked) or stackable (uncloaked). This was disappointing. I tried a lot of different combinations to try and figure out what was what and I did. If you disable the sprite, via its properties, and then disable it using the trigger in my above post, it becomes stackable. And vis versa. If its not disabled, via its properties, and then you do the enable, disable trigger mentioned in my above post, it will be cloaked. I think its this way. It not, I just mixed them up. In my Cloaked Units Pack I have different units that become disabled (cloaked) and it comes with the easy trigger to cloak anything. :D



None.

May 11 2008, 3:45 pm Falkoner Post #8



You can mix them :P Just enable the disabled sprite to make it stacked, and once you do that it becomes just like any other unit, just stacked, from there you just use the cloaking trick and it works just fine.



None.

May 11 2008, 9:29 pm Brontobyte Post #9



Quote from Falkoner
You can mix them :P Just enable the disabled sprite to make it stacked, and once you do that it becomes just like any other unit, just stacked, from there you just use the cloaking trick and it works just fine.

Orly? I thought that you can only do one of them. Either stacked or cloaked... :?:



None.

May 11 2008, 11:35 pm Falkoner Post #10



Nah, if that were true, the pretty sprite battlesystem by Lovel wouldn't work right.



None.

May 13 2008, 3:52 am stickynote Post #11



So if I wanted to stack a sprite on top of a unit, I would have to enable, disable, disable it, then move it to where I need it and have it walk 1 square till it is stacked on the other unit?



None.

May 13 2008, 4:03 am Falkoner Post #12



The sprite cannot walk onto other units, other units can walk onto it.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[2024-5-16. : 5:24 pm]
lil-Inferno -- poopoo
[2024-5-16. : 5:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
Please log in to shout.


Members Online: RIVE, Wing Zero, 1carolinee471rM1