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.
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.
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.
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.
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?
Awesome, your method works great private_parts. Thanks for your time everyone.
None.
Find Me On Discord (Brood War UMS Community & Staredit Network)
No worries bro! Admins ya can lock this one down!