How to make a costume script like if you press a key that you change your look and if you press again a other key so you change it back to your normal look…
[QUOTE=Raman;113619]
Heyy community I have got some questions…
I never understood how to use vecx, vecy i never learned it in school or w/e …
Can someone explain me it?
[/QUOTE]
So the naming of vecx and vecy are derived from the word vector. A vector is something that carries a direction and a weight/length.
Thus we think of the vecx(dir) function as the vector on the x-axis for the direction ‘dir’. Thus we know which way to move on the x-axis given a direction. We do the same for y.
Which in particular? The % symbol means modular division meaning we take the remainder of the division.
Example 1; 4%4 means the remainder of 4/4 which is 0.
Example 2; 6%4 means the remained of 6/4 which is 2.
Abs(number) has its naming derived from the absolute value. With the absolute value, we think of it as the distance from 0. Since distance can never be negative we effectively just remove the sign of the number. I.e. abs(-6) = 6, abs(3) = 3
[/QUOTE]
[QUOTE=Raman;113619]
How to make a costume script like if you press a key that you change your look and if you press again a other key so you change it back to your normal look…
[/QUOTE]
This kind of script development comes with the practice of logic. Once you understand gs1 properly you shouldn’t have to ask how to do this.
Look at guis and similar scripts people have made. Try understand them and you should have no problem.