![]() |
ow do i make sucker tubes
I edit the x speed values and y values to negative yet they still shoot them right or up.
|
No way!
|
I think the problem is that you think positive values make the player go right and up.
X Positive = right Negative = left Y Positive = down Negative = up Edit: updated |
Quote:
Quote:
|
I updated it (epic fail on my part, sorry ;p)
|
what happens if you set a y-value and an x-value?
|
At low speeds you get stuck. At higher speeds, you'll move diagonally.
|
empirical results and new hypothesis
Actually, you only get stuck if there's a small (meaning between -15 and 16 inclusive) x-speed and a non-zero y-speed. As long as the x-speed is large (-16 or lower, or 17 or higher), it doesn't matter what y-speed you have. To take a guess at why this works, in pseudo-code:
Code:
z = player.current_zone |
so,
X: Positive = Right Negative = Left Y: Positive = Down Negative = Up XY: Both positive(slow) = (probably) stuck Both positive(fast) = move diagonal down and right. How much diagonal, depends on X and Y parameters Both negative(slow) = (probably) stuck Both negative(fast) = move diagonal up and left. How much diagonal, depends on X and Y parameters Y positive, X negative = move diagonal down and left. How much diagonal, depends on X and Y parameters Y negative, X positive = move diagonal up and right. How much diagonal, depends on X and Y parameters |
Quote:
Quote:
|
Wow guys thanks alot. learned quite a bit!
|
No problem. Try to learn a lot of more in JCSing :)
|
| All times are GMT -8. The time now is 10:34 AM. |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online