Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Screen shake effect
Screen shake effect
This topic is locked. You can no longer write replies here.
Feb 24 2010, 3:20 pm
By: RetPallylol  

Feb 24 2010, 3:20 pm RetPallylol Post #1



Hi guys, I'm trying to create an earthquake effect by shaking the screen. Tried to center location and center to another location back to back but that doesn't work. What is the right method to do this? Thanks in advance.



None.

Feb 24 2010, 3:34 pm Lethoth Post #2



I guess you can just make 2 locations, centered in 2 observers. The observers must be vertical, and make them patrol a little going up and down. After that, center view on them really quick, I think that might work.



None.

Feb 24 2010, 3:35 pm Oh_Man Post #3

Find Me On Discord (Brood War UMS Community & Staredit Network)

Try to stay away from "edges" of the map when creating this effect, otherwise it won't work too well. Use two locations placed X distance from each other horizontally, vertically or both (up to you which you think looks best) and then use death counts and center screens to determine how often the screen shakes. That's for a static shake, if you want to have the mobile shake you've got to do a bunch of tricky stuff, so let us know if that's the case.

If you've just got two center screens "back to back" which I assume means one after another in the trigger list, then the center will happen so rapidly that you won't see it. That's why you need death counters to add a delay between each center screen.

@Lenoth instead of using observers you can use a vertical strip of burrowed units, after you center screen you give 1 burrowed unit to different player, so on so on. This gives you relatively the same effect without seeing the observer moving up and down.

Post has been edited 2 time(s), last time on Feb 24 2010, 4:49 pm by private_parts.




Feb 24 2010, 3:41 pm RetPallylol Post #4



It's going to be in a fixed location away from the edges. It's going to happen every time a unit touches the player with a moving location. So one location at the fixed location, and another one directly horizontal from it, then set dcs to center to this location every half second? I'm still not getting the method.



None.

Feb 24 2010, 3:54 pm Oh_Man Post #5

Find Me On Discord (Brood War UMS Community & Staredit Network)

CON
Bring at least 1 (unit) owned by player X at location PLAYER
DC is 0
ACT
Set DC to 1
Preserve

CON
DC is at least 1
ACT
Add 1 DC
Preserve

CON
DC is exactly X
ACT
Center screen at location SHAKE 1
Preserve

CON
DC is exactly X
ACT
Center screen at location SHAKE 2
Preserve

etc. etc. etc. add as many shakes as you want. To save copy/pasting you might want to have a second DC, first DC loops second DC responsible for the end of the shake.

CON
DC is exactly X
ACT
set DC to 0
Preserve

Do you understand now?




Feb 24 2010, 4:35 pm RetPallylol Post #6



Awesome, your method works great private_parts. Thanks for your time everyone.



None.

Feb 24 2010, 4:41 pm Oh_Man Post #7

Find Me On Discord (Brood War UMS Community & Staredit Network)

No worries bro! Admins ya can lock this one down!




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:43 am]
Symmetry -- I'm doing my best, damn it
[04:46 pm]
Ultraviolet -- @:@
@:@ shouted: this community still going strong?
Still going.. strong is debatable though.
[04:13 pm]
WeirdoX4857 -- I can't believe this is really been around since 2003 but it does look classic and old asf still better than talking to kids on discord ranting about skibidi toilet and sexuality or whatever mental illness is going on in their heads
[04:11 pm]
WeirdoX4857 -- Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
[04:10 pm]
WeirdoX4857 -- Where is everybody
[01:21 pm]
@:@ -- this community still going strong?
[2026-9-27. : 4:30 pm]
Oh_Man -- yeah, probs
[2026-9-27. : 3:11 pm]
NudeRaider -- I bet it just needs another training session against pros instead of only against itself and nobody will be able to stop it anymore.
[2026-9-27. : 3:09 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
so it can be beaten by a prepared pro, even in macro games, if only barely. the muta micro in particular seems really hard to handle for protoss ground though. In the open goons can't catch them, in the base they trip over buildings, it just instantly flies out of storms and they fly circles around archons. Mass cannons do work, but can't cover the whole map with it. Probably need mass corsair to counter and hope you can outmaneuver all the scourge.
[2026-9-27. : 2:14 am]
Oh_Man -- pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
Please log in to shout.


Members Online: RIVE