User prompt
При двойном прыжке, персонаж подпрыгивает на такое же расстояние, как и при первом прыжке
User prompt
Если нажать кнопку button_top во время первого прыжка, то персонаж подпрыгнет еще выше
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween.to(player, {' Line Number: 39 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Исправить ошибку, когда двойной прыжок не срабатывает
User prompt
Добавить функцию двойной прыжок. При повторном нажатии на button_top
User prompt
Если во время прыжка нажать на кнопку button_top, то игрок совершает прыжок из той точки, в который находится игрок в момент прыжка и возвращается в исходное (первоначальное) положение до момента прыжка
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween.to(player, {' Line Number: 36 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
При нажатии на кнопку button_top, игрок подпрыгивает и встает на свое место
User prompt
Удалить локигу прыжков
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween.to(player, {' Line Number: 35 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween.to(player, {' Line Number: 35
User prompt
Добавить логику прыжков на кнопку button_top
User prompt
Удалить логику прыжков
User prompt
Уменьшить дрожание на 1
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var jumpTween = tween.to(player, {' Line Number: 34 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var jumpTween = tween.to(player, {' Line Number: 34 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var jumpTween = tween.Tween.to(player, {' Line Number: 34 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var jumpTween = tween.to(player, {' Line Number: 34
User prompt
Добавить плагин tween ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var jumpTween = tween.Tween.to(player, {' Line Number: 34 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var jumpTween = tween.to(player, {' Line Number: 34
User prompt
При нажатии на кнопку button_top происходит прыжок с возвращением на начальное положение
User prompt
Please fix the bug: 'Uncaught TypeError: tween.to is not a function' in or related to this line: 'tween.to(player, {' Line Number: 36 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
высота прыжка = 250. При прыжке игрок всегда возвращается в свое первоначальное положение
User prompt
Добавить логику прыжка, при нажатии на кнопку BUTTON_TOP
===================================================================
--- original.js
+++ change.js
@@ -20,8 +20,22 @@
var buttonTopGraphics = self.attachAsset('BUTTON_TOP', {
anchorX: 0.5,
anchorY: 0.5
});
+ self.down = function (x, y, obj) {
+ if (!player.inAir) {
+ player.inAir = true;
+ tween.to(player, {
+ y: player.y - 300
+ }, 500, function () {
+ tween.to(player, {
+ y: 2732 / 2 - 250
+ }, 500, function () {
+ player.inAir = false;
+ });
+ });
+ }
+ };
});
// Create a player class
var Player = Container.expand(function () {
var self = Container.call(this);
создать мультяшного сидячего персонажа. 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