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.
[10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
Please log in to shout.


Members Online: Roy