User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'x')' in this line: 'leftJumpButton.x = leftButton.x;' Line Number: 42
User prompt
add a jump button bellow each move button
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'on')' in this line: 'jumpButton.on('down', function () {' Line Number: 41
User prompt
jumpButton is no longer visible fix
User prompt
monkey is moving right to fast
User prompt
undo last
User prompt
move to right more
User prompt
the first platform should be to the right of the left button
User prompt
move the platform starting point to the right
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'height')' in this line: 'platform.spawn(i * 400, 2732 - i * 200 - rightButton.height - 100);' Line Number: 46
User prompt
the platforms should only be above the buttons
User prompt
make the buttons even and move them apart some
User prompt
but the jump button above the right buttion
User prompt
the monkey goes to high for jump
User prompt
make jump
User prompt
add gravity to the monkey
User prompt
make platforms for the monkey to jump on
User prompt
remove jump code
User prompt
the jump is not working the button should move up and then the monkey jumps in that direction
User prompt
when the button is held down and moved upward the monkey will jump in that direction
User prompt
the flip directions are backwards
User prompt
if the monkey is moving left the monkey needs to flip that way
User prompt
the monkey should jump in an arch and fall back down in arch
User prompt
the double jump seems to not be working now
User prompt
the bottom of the screen should be a floor the monkey should not fall past it
===================================================================
--- original.js
+++ change.js
@@ -37,8 +37,17 @@
};
});
var Game = Container.expand(function () {
var self = Container.call(this);
+ var monkey = self.addChild(new Monkey());
+ var bananas = [];
+ var platforms = [];
+ var leftButton = self.createAsset('leftButton', 'Left control button', 0, 1);
+ var rightButton = self.createAsset('rightButton', 'Right control button', 1, 1);
+ leftButton.x = 100;
+ leftButton.y = 2732 - leftButton.height - 100;
+ rightButton.x = 2048 - rightButton.width - 100;
+ rightButton.y = 2732 - rightButton.height - 100;
var leftJumpButton = self.createAsset('jumpButton', 'Jump control button', 0, 1);
leftJumpButton.x = leftButton.x;
leftJumpButton.y = leftButton.y + leftButton.height + 50;
leftJumpButton.on('down', function () {
@@ -49,17 +58,8 @@
rightJumpButton.y = rightButton.y + rightButton.height + 50;
rightJumpButton.on('down', function () {
monkey.jump();
});
- var monkey = self.addChild(new Monkey());
- var bananas = [];
- var platforms = [];
- var leftButton = self.createAsset('leftButton', 'Left control button', 0, 1);
- var rightButton = self.createAsset('rightButton', 'Right control button', 1, 1);
- leftButton.x = 100;
- leftButton.y = 2732 - leftButton.height - 100;
- rightButton.x = 2048 - rightButton.width - 100;
- rightButton.y = 2732 - rightButton.height - 100;
for (var i = 0; i < 5; i++) {
var platform = new Platform();
if (i === 0) {
platform.spawn(leftButton.x + leftButton.width + 100, 2732 - i * 200 - rightButton.height - 100);
Yellow circle button unreal engine 5 Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
green circle button unreal engine 5 Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d single log laying long ways on side with vines seen from side unreal engine 5 Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
2d jungle canopy background side scroller unreal engine 5 Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows No ground
Monkey full body animation unreal engine seen from the side very cute In-Game asset. 3d. Blank background. High contrast. No shadows
jungle floor dirt 2d unreal engine seen from the side In-Game asset. 3d. Blank background. High contrast. No shadows
yellow banana unreal engine 5 Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
blue banana unreal engine 5 Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.