How to give a player a velocity to left / right
Hi,
how can you give a player a certain velocity towards his left side or towards his right side? This velocity would have to last for let's say only 0.1 seconds. O <-----V to left------ -|- -----V to right-----> /\ |
Re: How to give a player a velocity to left / right
|
Re: How to give a player a velocity to left / right
Thanks,
the link was really good. I'm trying to get the forward movement to work before i try with the sides but it aint easy. :) PHP Code:
|
Re: How to give a player a velocity to left / right
Not tested, basically same code as velocity_by_aim
PHP Code:
|
Re: How to give a player a velocity to left / right
Thanks ConnorMcLeod,
i tested it but i am not sure if it works or not. I just pasted it in a .sma and compiled it. I couldn't really notice any speeds. I tried it this way but for some reason, you cannot jump while the below velocity code is in action. Why!? :cry: Can you please correct this code? The current velocity code will disable players jumping ability. Currently you do get a short burst but you cannot jump, although you have pressed the jump button. :cry: What i want is a "Dodge" jump. Like when you are under fire, you press e.g. D+JUMP and you get a boost jump to the side to get out of the trouble zone. Thanks. :) PHP Code:
|
| All times are GMT -4. The time now is 08:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.