Posts: 1,556
Threads: 77
Joined: May 2011
My problem in brief is:
I have a negative dvy+ltr in a move. When the move hits an opponent the char goes extra up more than I wanted and noted in the dvy tag...
Is there any way to prevent this extra going up when the moves hit??.
I tried missing with the centery but a lot of glitches appeared.
Any help would be appreciated.
Thanks given by:
Posts: 2,591
Threads: 259
Joined: Feb 2008
actually if you put a dvy: 50 for example, the char won`t go up 50 px, the 50 is more a variable for a function which calculates the height yoyu fly, so my suggestion is you make the dvy smaller and try out which value is good for your move...
www.lf-empire.de
Once I had a fortune, it said: "Leave now. Life is short. Time is luck"
Don't dream your life, live your dream!
Posts: 502
Threads: 21
Joined: May 2011
10-18-2011, 05:56 AM
(This post was last modified: 10-18-2011, 05:56 AM by mfc.)
Negative dvy makes char go high.
dvy: -2 -a little high
dvy: -7 -higher
dvy: -45 -more higher
dvy: -70 -more more higher
These are not special numbers.
As you decrease the number; char goes higher..
Edit: mh ninja'ed:P
Posts: 1,073
Threads: 38
Joined: Mar 2008
dvy: -50 means go up 50 pixels per time unit;
also every time unit, t0 objects experience a 1.7 pixel gravitational force to the ground
so t0s will actually go up by 50² / (2 * 1.7) = 735 pixels before coming down if hit by that itr
Azriel~
Posts: 502
Threads: 21
Joined: May 2011
D: !
All this physics stuff looks so complicated!
(at least i know that "(v(start))*t + (1/2)*g*(t^2)" gives us the height from starting point)
But, how do you know the acceleration value of gravity?
From hex? o_O
Posts: 1,556
Threads: 77
Joined: May 2011
I guess that formula will not work when hitting 20 foes (knowing that sounds weird)......... I even tried using dvy: -3.4 so 11.56/3.4=3.4+same hight. I guess this can be solved by disabling the lagging when hitting thing using hex. Dunno, maybe U have a dc solution or an admin may please move this to HEX forums..
Thanks given by:
Posts: 502
Threads: 21
Joined: May 2011
10-18-2011, 03:24 PM
(This post was last modified: 10-18-2011, 03:27 PM by mfc.)
Dvy tag doesn' work if fall value of itr is smaller than 70.
Also you don't need to calculate complicated things like that.
Just try dvy: -1, you didn't like it? Then try dvy: -2, ...
And also theese are same in dc programming: 1,8=1,5=1,999=1,45368=1.
The numbers after comma aren't used.
Can you tell me what exactly do you want?
Also @topic title: not nIgative, nEgative