User prompt
Please fix the bug: 'Cannot set properties of undefined (setting 'up')' in or related to this line: 'self.up = function (x, y, obj) {' Line Number: 199
User prompt
Если нажать button_bot когда персонаж не в прыжке, то персонаж поворачивается на 70 градусов против часовой стрелки, а как только отпускают Button_bot, то персонаж разворачивается обратно
User prompt
если персонаж в полете и нажать и удерживать кнопку button_bot, то игрок еще поворачивается на 70 градусов. При отжатии кнопки возвращается в исходное положение
Code edit (7 edits merged)
Please save this source code
User prompt
исправить ошибку, когда при приземлении, если отжать зажатую кнопку button_bot персонаж поворачивается
User prompt
пока персонаж в полете и нажать кнопку button_bot, то игрок не повернется на 70 градусов
User prompt
последнее изменение не 90 градусов, а 70
User prompt
Please fix the bug: 'Cannot set properties of undefined (setting 'up')' in or related to this line: 'self.up = function (x, y, obj) {' Line Number: 203
User prompt
Please fix the bug: 'Cannot set properties of undefined (setting 'up')' in or related to this line: 'self.up = function (x, y, obj) {' Line Number: 199
User prompt
Если нажать и удерживать button_bot когда персонаж не в прыжке, то персонаж поворачивается на 90 градусов против часовой стрелки, а как только отпускают Button_bot, то персонаж разворачивается обратно
User prompt
Если нажать на button_bot когда на первоначальной позиции, то персонаж поворачивается на 90 градусов против часовой стрелки
User prompt
Добавить событие на button_bot, если во время прыжка или double jump нажать на button_bot, то длительность приземления равна 100
Code edit (5 edits merged)
Please save this source code
User prompt
Увеличить скорость заднего фона 1
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween(player, {' Line Number: 57 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Условие inair должно определятся, если игрок сдвинулся от y=-1 до -300
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween(player, {' Line Number: 53 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Если double jump нажимают во время того, как первый прыжок не дошел до своего пика высоты, то jump отменяется и начинает срабатывать double jump
User prompt
Отменить прыжок jump и заменить его double jump, если jump не завершен
Code edit (3 edits merged)
Please save this source code
User prompt
добавить проверку, чтобы высота DOUBLE JUMP была всегда равна 400
User prompt
y: player.y - 400 высота DOUBLE JUMP должна всегда быть равно 400. ИСправить ситуацию, когда второй прыжок может быть меньше
Code edit (10 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -13,8 +13,11 @@
anchorY: 0.5
});
// Add down event to set landing duration to 100 during jump or double jump
self.down = function (x, y, obj) {
+ if (!player.inAir && !player.doubleJump) {
+ player.rotation -= Math.PI / 2.571; // Rotate 70 degrees counter-clockwise
+ }
if (player.inAir || player.doubleJump) {
tween(player, {
y: 2732 / 2 - 250
}, {
@@ -24,18 +27,15 @@
player.doubleJump = false;
player.y = 2732 / 2 - 250;
}
});
- // Rotate player 70 degrees counterclockwise
- player.rotation -= Math.PI * (70 / 180);
- } else {
- // Rotate player 70 degrees counterclockwise
- player.rotation -= Math.PI * (70 / 180);
}
};
- // Add up event to rotate player back to original position
+ // Add up event to reset rotation
self.up = function (x, y, obj) {
- player.rotation += Math.PI * (70 / 180);
+ if (!player.inAir && !player.doubleJump) {
+ player.rotation += Math.PI / 2.571; // Rotate back 70 degrees clockwise
+ }
};
});
// Create a button top class
var ButtonTop = Container.expand(function () {
создать мультяшного сидячего персонажа. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
snowball. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
белая стрелочка вниз. Ровная. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Алмаз, мультяшный. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Скелет дракона. Мультяшный. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Ufo (летающая тарелка). Мультяшная. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Пингвин в снегу. Мультяшный. Головой в снегу. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Мультяшный рыбак зимой сидит рыбачит. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Человек летит на параплане. Мультяшный. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Куст в снегу мультяшный. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Дирижабль, мультяшный. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Рука белая. Иконка. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Монетка золотая мультяшная. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
снежинка. мультяшная. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
text: New Record! Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows