Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Ice Explosion
#1
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.

freeze_exp image (Click to View)
freeze_column.dat changes (Click to View)
freeze.dat changes (Click to View)
Reply
Thanks given by:
#2
Make two itrs.
One on each side sending the character two different directions.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by:
#3
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!
Reply
Thanks given by:
#4
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.
Reply
Thanks given by:
#5
works. i have multiple areas in my char's explosion



Azriel~
Reply
Thanks given by:
#6
totally didn't work. Here's what I changed.

freeze_column.dat (Click to View)
Reply
Thanks given by:
#7
dvy should always be -ve (y axis should go up)
don't let ur itrs overlap.

| area1 -dvx || area2 +dvx |
not
||area1 area2||



Azriel~
Reply
Thanks given by:
#8
[Image: freezeexp.png]
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 :)
Reply
Thanks given by:
#9
so I just need to make all the divy values negative and keep the divx values opposite each other?
Reply
Thanks given by:
#10
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.
Reply
Thanks given by: Alblaka




Users browsing this thread: 1 Guest(s)