User prompt
the monkey should have gravity applied because it gets stuck when it jumps in the air
User prompt
double clicking ether button makes the monkey jump up in that direction
User prompt
I need to be able to hold the button down and have it go forward
User prompt
the monkey should only move when pressing the buttons
User prompt
make buttons at the bottom right and left. right controls the jump and left makes the monkey move
User prompt
you are to give the monkey double jump
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'originalEvent')' in this line: 'if (obj.event.data.originalEvent.detail == 2) {' Line Number: 33
User prompt
by clicking spot on the screen I should be able to move the monkey and a double click does a jump
User prompt
good job
User prompt
can you flip the direction of the monkey and move it to the bottom of the screen please
Initial prompt
Monkey Go Bananas
===================================================================
--- original.js
+++ change.js
@@ -29,12 +29,17 @@
var timer = LK.setInterval(function () {});
monkey.x = 200;
monkey.y = 2732 - monkey.height;
stage.on('down', function (obj) {
- monkey.jump();
+ if (obj.event.data.originalEvent.detail == 2) {
+ monkey.jump();
+ }
});
+ stage.on('move', function (obj) {
+ var pos = obj.event.getLocalPosition(self);
+ monkey.x = pos.x;
+ });
LK.on('tick', function () {
- monkey.move();
for (var i = 0; i < bananas.length; i++) {
if (monkey.intersects(bananas[i])) {
monkey.collectBanana();
bananas[i].destroy();
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.