![]() |
[help] car script speed
i got this script that makes them play a car gani. but how do i make it so they go fast when they in the car??? and its a spy car it shoots bullets :)
PHP Code:
|
Freeze the player and update their position manually.
|
Dude, please try and use GS2 :(
|
how do i freeze my player and update there possition???
|
.... HR? Skyld? Can I? Pleeeeeaaaaasseee?
|
Quote:
your just gonna tell me about graal wiki iv ben there about it none of that crap helps me so just tell me and not take me to a website |
Quote:
|
i have 1 so he is not on
abd can ya help me with the script???? |
Quote:
As for position, Graal uses the two-dimensional Cartesian coordinate system to describe positions as points in the Euclidean space. The following image visualizes this in a clear manner. http://i35.tinypic.com/59sy05.png You can translate an object thusly: (x, y) -> (x + dx, y + dy) Conversely: x' = x + dx y' = y + dy To rotate about the origin: http://i38.tinypic.com/4jql9h.png Or: x' = x * cos(theta) - y * sin(theta) y' = -x * sin(theta) + y * cos(theta) |
say what
|
Quote:
|
Quote:
Just please don't come on the forums, ask for scripts, then act like a jackass. |
Quote:
And also, GS2 is like New English, it can be manipulated to do a lot of things. GS1 is like Old English, it can't really be said well off the top of your head anymore and can't be changed. |
Quote:
Say we have angle a and speed s, and we wanted to get the changing X and the changing Y values for said speeds. For these purposes, I will assign the following values to a and s. PHP Code:
First off, we want to convert a into radians so that they will work with Sine and Cosine. This is done using the following formula*: PHP Code:
To get a simple speed (if s was 1, for example), you would use the following formula: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Hope this was helpful :) (NOTE: With the values specified, if you followed instructions carefully enough, you should get changeX = 0 and changeY = 5.) * In GraalScript, this functionality is built-in. You can either use the formula or use degtorad(float) to get your answer. ** Replace this with a percent sign in GraalScript. Quote:
|
Just use radians for your angle. Degrees is seldom used in programming.
PHP Code:
PHP Code:
PHP Code:
|
Quote:
|
| All times are GMT +2. The time now is 11:28 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.