Тёмный

How to make a working joystick and slidearea in its magic|CodeMaster|It's magic| 

CodeMaster
Подписаться 22
Просмотров 12
50% 1

Hi Guys, How is it going on ?
I am CodeMaster actually It's that I was going through play store How to make a app in android and I got this app now as coding was required in this app and very few gamers made working script video on this topic so now I made it
Thanks 4 watching
Discord :- / discord
World Dwonload - / discord
CODE =
// Author CodeMaster //
@AutoWired private Characterbody cb;
private float angle = 0;
private float slideSpeed = 10;
void repeat() {
Joystick();
slideArea();
}
private void Joystick() {
float MoveY = cb.getForwardSpeed();
float MoveX = cb.getSideSpeed();
if (cb.onGround()) {
cb.setForwardSpeed(Input.getAxisValue("joystick").y * 3);
cb.setSideSpeed(-Input.getAxisValue("joystick").x * 3);
}
}
private void slideArea() {
angle = Math.clamp(-90, angle += Input.getAxisValue("slide").y * slideSpeed * Time.deltaTime, 60);
Vector3 SinCos = new Vector3(0, -Math.sin(angle), Math.cos(angle));
myObject.findChildObject("Camera").getTransform().getRotation().selfLookTo(SinCos);
myObject.getTransform().rotateInSeconds(0, -Input.getAxisValue("slide").x * slideSpeed, 0);
}

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
How I Beat The Password Game
39:53
Просмотров 63 тыс.
I tried Linux for a week, it was terrible but amazing
8:37
Can You Build a Working iPhone From AliExpress...?
19:06
Uhhh... Hmmmmmmm...
8:13
Просмотров 576 тыс.
How to Create a Platform Game in Godot
2:49:58
3 Hours vs. 3 Years of Blender
17:44
Просмотров 4,8 млн
I Made The Ultimate Cheating Device
9:39
Просмотров 195 тыс.
Adobe is horrible. So I tried the alternative
25:30
Why Are Open Source Alternatives So Bad?
13:06
Просмотров 635 тыс.