[solved] Ice Explosion - superboi - 11-17-2010
Made freeze perform an Ice Explosion, but there's a bug where the person it hits can go in the wrong direction. Basically, regardless, of what side they are hit by, they will always fly towards the direction I am facing.
<bmp_begin>
file(0-27): sprite\sys\freeze_col.bmp w: 109 h: 109 row: 7 col: 4
file(28-37): sprite\sys\freeze_ww.bmp w: 159 h: 159 row: 5 col: 2
file(38-52): sprite\sys\freeze_exp.bmp w: 159 h: 159 row: 5 col: 3
weapon_hit_sound: data\072.wav
weapon_drop_sound: data\072.wav
weapon_broken_sound: data\072.wav
<bmp_end>
...
...
...
<frame> 171 explosion
pic: 52 state: 3000 wait: 1 next: 172 dvx: 0 dvy: 0 centerx: 78 centery: 148 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 172 explosion
pic: 38 state: 13 wait: 1 next: 173 dvx: 0 dvy: 0 centerx: 78 centery: 148 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 23 y: 36 w: 112 h: 110 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 173 explosion
pic: 39 state: 13 wait: 1 next: 174 dvx: 0 dvy: 0 centerx: 78 centery: 148 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 20 y: 16 w: 122 h: 135 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 174 explosion
pic: 40 state: 13 wait: 1 next: 175 dvx: 0 dvy: 0 centerx: 78 centery: 148 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 19 y: 18 w: 127 h: 131 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 175 explosion
pic: 41 state: 13 wait: 1 next: 176 dvx: 0 dvy: 0 centerx: 78 centery: 148 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 7 y: 16 w: 146 h: 132 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 176 explosion
pic: 42 state: 13 wait: 1 next: 177 dvx: 0 dvy: 0 centerx: 78 centery: 150 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 13 y: 13 w: 137 h: 132 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 177 explosion
pic: 43 state: 13 wait: 1 next: 178 dvx: 0 dvy: 0 centerx: 78 centery: 155 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 7 y: 14 w: 145 h: 117 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 178 explosion
pic: 44 state: 13 wait: 1 next: 179 dvx: 0 dvy: 0 centerx: 78 centery: 157 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 15 y: 6 w: 128 h: 123 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 179 explosion
pic: 45 state: 13 wait: 1 next: 180 dvx: 0 dvy: 0 centerx: 78 centery: 164 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 15 y: 6 w: 128 h: 123 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 180 explosion
pic: 46 state: 13 wait: 1 next: 181 dvx: 0 dvy: 0 centerx: 78 centery: 171 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 181 explosion
pic: 47 state: 13 wait: 1 next: 182 dvx: 0 dvy: 0 centerx: 78 centery: 177 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 182 explosion
pic: 48 state: 13 wait: 1 next: 1000 dvx: 0 dvy: 0 centerx: 76 centery: 172 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 0 standing
pic: 0 state: 0 wait: 16 next: 1 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 hit_Fa: 235 hit_Fj: 245 hit_Uj: 260 hit_Dj: 270 hit_Ua: 276
bpoint:
x: 40 y: 35
bpoint_end:
wpoint:
kind: 1 x: 40 y: 43 weaponact: 35 attacking: 0 cover: 0 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
...
...
...
<frame> 276 Explosion
pic: 78 state: 3 wait: 1 next: 277 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 mp: 150
wpoint:
kind: 1 x: 35 y: 48 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 24 y: 14 w: 31 h: 64
bdy_end:
<frame_end>
<frame> 277 Explosion
pic: 79 state: 3 wait: 1 next: 278 dvx: 0 dvy: 0 dvz: 0 centerx: 30 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
sound: data\019.wav
wpoint:
kind: 1 x: 35 y: 48 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 24 y: 14 w: 31 h: 64
bdy_end:
<frame_end>
<frame> 278 Explosion
pic: 87 state: 3 wait: 1 next: 279 dvx: 0 dvy: 0 dvz: 0 centerx: 30 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 35 y: 48 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 24 y: 14 w: 31 h: 64
bdy_end:
<frame_end>
<frame> 279 Explosion
pic: 88 state: 3 wait: 1 next: 280 dvx: 2 dvy: 0 dvz: 0 centerx: 28 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 35 y: 48 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 24 y: 14 w: 31 h: 64
bdy_end:
<frame_end>
<frame> 280 Explosion
pic: 89 state: 3 wait: 1 next: 281 dvx: 2 dvy: 0 dvz: 0 centerx: 32 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
sound: data\020.wav
wpoint:
kind: 1 x: 35 y: 48 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 24 y: 14 w: 31 h: 64
bdy_end:
<frame_end>
<frame> 281 Explosion
pic: 115 state: 3 wait: 2 next: 282 dvx: 1 dvy: 0 dvz: 0 centerx: 32 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
opoint:
kind: 1 x: 48 y: 81 action: 173 dvx: 0 dvy: 0 oid: 212 facing: 1
opoint_end:
wpoint:
kind: 1 x: 35 y: 48 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 24 y: 14 w: 31 h: 64
bdy_end:
<frame_end>
<frame> 282 Explosion
pic: 116 state: 3 wait: 4 next: 283 dvx: 0 dvy: 0 dvz: 0 centerx: 32 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
sound: data\020.wav
wpoint:
kind: 1 x: 35 y: 48 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 24 y: 14 w: 31 h: 64
bdy_end:
<frame_end>
<frame> 283 Explosion
pic: 119 state: 3 wait: 3 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 32 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 35 y: 48 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0
wpoint_end:
bdy:
kind: 0 x: 24 y: 14 w: 31 h: 64
bdy_end:
<frame_end>
VIDEO
RE: Ice Explosion - Som1Lse - 11-17-2010
Make two itrs.
One on each side sending the character two different directions.
RE: Ice Explosion - Simoneon - 11-17-2010
For your facing problem, I guess you can just put 2 itr's with different areas, one with positive dvx: and the other one with negative dvx value.
Hope that helps.
niiiiiiiiiiiinja sp tjat!
RE: Ice Explosion - superboi - 11-17-2010
I'll give it a try, but I doubt it'lll work. I've tried it with positive values only, and it doesn't make them fly at all. They just freeze, and then the explosion hits them again knocking them down where they were.
RE: Ice Explosion - Azriel - 11-17-2010
works. i have multiple areas in my char's explosion
Azriel~
RE: Ice Explosion - superboi - 11-17-2010
totally didn't work. Here's what I changed.
<frame> 171 explosion
pic: 52 state: 3000 wait: 1 next: 172 dvx: 0 dvy: 0 centerx: 78 centery: 148 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 172 explosion
pic: 38 state: 13 wait: 1 next: 173 dvx: 0 dvy: 0 centerx: 78 centery: 148 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 23 y: 36 w: 112 h: 110 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
itr:
kind: 0 x: 15 y: 6 w: 128 h: 123 dvx: 12 dvy: 18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 173 explosion
pic: 39 state: 13 wait: 1 next: 174 dvx: 0 dvy: 0 centerx: 78 centery: 148 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 20 y: 16 w: 122 h: 135 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
itr:
kind: 0 x: 15 y: 6 w: 128 h: 123 dvx: 12 dvy: 18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 174 explosion
pic: 40 state: 13 wait: 1 next: 175 dvx: 0 dvy: 0 centerx: 78 centery: 148 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 19 y: 18 w: 127 h: 131 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
itr:
kind: 0 x: 15 y: 6 w: 128 h: 123 dvx: 12 dvy: 18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 175 explosion
pic: 41 state: 13 wait: 1 next: 176 dvx: 0 dvy: 0 centerx: 78 centery: 148 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 7 y: 16 w: 146 h: 132 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
itr:
kind: 0 x: 15 y: 6 w: 128 h: 123 dvx: 12 dvy: 18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 176 explosion
pic: 42 state: 13 wait: 1 next: 177 dvx: 0 dvy: 0 centerx: 78 centery: 150 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 13 y: 13 w: 137 h: 132 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
itr:
kind: 0 x: 15 y: 6 w: 128 h: 123 dvx: 12 dvy: 18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 177 explosion
pic: 43 state: 13 wait: 1 next: 178 dvx: 0 dvy: 0 centerx: 78 centery: 155 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 7 y: 14 w: 145 h: 117 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
itr:
kind: 0 x: 15 y: 6 w: 128 h: 123 dvx: 12 dvy: 18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 178 explosion
pic: 44 state: 13 wait: 1 next: 179 dvx: 0 dvy: 0 centerx: 78 centery: 157 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 15 y: 6 w: 128 h: 123 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
itr:
kind: 0 x: 15 y: 6 w: 128 h: 123 dvx: 12 dvy: 18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 179 explosion
pic: 45 state: 13 wait: 1 next: 180 dvx: 0 dvy: 0 centerx: 78 centery: 164 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 15 y: 6 w: 128 h: 123 dvx: -12 dvy: -18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
itr:
kind: 0 x: 15 y: 6 w: 128 h: 123 dvx: 12 dvy: 18 fall: 70 vrest: 300 bdefend: 16 injury: 125 zwidth: 37
effect: 3
itr_end:
<frame_end>
<frame> 180 explosion
pic: 46 state: 13 wait: 1 next: 181 dvx: 0 dvy: 0 centerx: 78 centery: 171 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 181 explosion
pic: 47 state: 13 wait: 1 next: 182 dvx: 0 dvy: 0 centerx: 78 centery: 177 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
<frame> 182 explosion
pic: 48 state: 13 wait: 1 next: 1000 dvx: 0 dvy: 0 centerx: 76 centery: 172 hit_a: 0 hit_d: 0 hit_j: 0
<frame_end>
RE: Ice Explosion - Azriel - 11-17-2010
dvy should always be -ve (y axis should go up)
don't let ur itrs overlap.
| area1 -dvx || area2 +dvx |
not
||area1 area2||
Azriel~
RE: Ice Explosion - Simoneon - 11-17-2010
Here, have a look at this. For example itr1 should have dvx: -20 and itr2 should have dvx: 20. You can also add even more itrs in that, if you're not too lazy, it simply works
RE: Ice Explosion - superboi - 11-17-2010
so I just need to make all the divy values negative and keep the divx values opposite each other?
RE: Ice Explosion - Simoneon - 11-17-2010
You need to:
- split your itrs in two areas (different coordinates, that is)
- add negative dvy on both itrs (because negative dvy is the top-y-axis)
- add either negative or positive (like -20 and 20) dvx; depends on which itr you're going to add.
- read this: http://www.lf-empire.de/forum/showthread.php?tid=4747 it basically explains everything you need to be a good dcer.