Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Dynamically Creating Rock Sprites Ingame
Dynamically Creating Rock Sprites Ingame
This topic is locked. You can no longer write replies here.
Dec 4 2009, 9:15 am
By: Pinky  

Dec 4 2009, 9:15 am Pinky Post #1



Yo yo wasup got another question for you all I have been tryin to figure out how Rock Sprites are created ingame, like that level of Rush in the caves with the ultralisk when you blow up the demolitions.

Right now I have some preplaced Interceptor sprites that are disabled, but I don't think you can create sprites and then disable them using triggers can you? How did RUSH do it?

Many thanks in advance.



None.

Dec 4 2009, 11:19 am NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Check for yourself.
Damn this method is so old and underused I can't remember it... :><:
I'll try to dig out a tutorial in the meantime.

EDIT:
there
Basically you disable a valkyrie (some other units work too) and make sure the player has no vision to it or at least doesn't look at it, then wait 1ms and remove the valkyrie. The rock sprite will then appear a few squares above where the valk was and can then be looked at.

Post has been edited 2 time(s), last time on Dec 4 2009, 11:41 am by NudeRaider.




Dec 4 2009, 3:21 pm Pinky Post #3



Can the rock sprites be removed later with triggers? Or are they there for the rest of the game?

If so, what triggers would I use?



None.

Dec 4 2009, 3:46 pm NudeRaider Post #4

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

They can't be removed afaik.




Dec 5 2009, 12:28 am Falkoner Post #5



There WAS another method that let you look at it, IIRC...

Yeah, found the map, looks like in the map it constantly runs the Junk Yard Dog AI, and to create the rocksprite, they create a new turret, wait for 84 milliseconds(or less), during which I assume the AI affects the turret once, then remove it immediately after. I'll post the map below.

Attachments:
Create_Rocksprite.scx
Hits: 8 Size: 26.3kb



None.

Dec 5 2009, 1:55 am NudeRaider Post #6

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Yes, this is method 2 described in the tutorial I linked to. And if the junkyard dog ai doesn't cause problems in your map it's actually preferable.




Dec 5 2009, 6:21 pm stickynote Post #7



But withe the valkyrie, you can quickly create a randomized dungeon at the beginning of the game and place buildings underneath it everywhere.



None.

Dec 7 2009, 7:05 pm Pinky Post #8



Thanks can lock now plz.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
ManCubuS -- Seems like something's broken regarding the site then. Sadge...
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[2026-7-26. : 3:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[2026-7-26. : 3:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[2026-7-26. : 3:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[2026-7-26. : 3:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[2026-7-26. : 11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
Please log in to shout.


Members Online: Zycorax, Dem0n