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.
[01:53 am]
Ultraviolet -- :lol:
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
Please log in to shout.


Members Online: Roy