Code edit (10 edits merged)
Please save this source code
User prompt
make alive kitty gostly movement faster
User prompt
hop should start from the center positon up
User prompt
kitty start position for jumping should be its original position
User prompt
kitty hop movement should go up and down up and down
User prompt
kitty hops should start from the kitty position and up
User prompt
move alive kitty 50 pixels above the shadow
User prompt
instead of ghostly movement if kitty is not dead it should hop up and down
User prompt
kitty hop soudl start 100 pixels up
User prompt
change kitty movement when isdead is false. instead of gostly it should hop up and down.
Code edit (1 edits merged)
Please save this source code
User prompt
if kitty.isdead = false, then hide deadkitty.
Code edit (1 edits merged)
Please save this source code
User prompt
axe should be behind all the layers
Code edit (3 edits merged)
Please save this source code
User prompt
remove image from layer4 asset
User prompt
move axes starting position 200 pixels down and right
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'var currentY = obj.event.getLocalPosition(self.parent).y;' Line Number: 145
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'var currentPos = obj.event.getLocalPosition(self.parent);' Line Number: 171
User prompt
move the axe anchor to 1 1
User prompt
axe should rotate only for 45 degrees and theyn go back to center and keep doing tht
User prompt
make axe rotate the other way
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'var currentY = obj.event.getLocalPosition(self.parent).y;' Line Number: 25
Code edit (3 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'x')' in this line: 'redbutton.x = deadoralivemessage.x;' Line Number: 288
===================================================================
--- original.js
+++ change.js
@@ -21,9 +21,9 @@
self.on('down', function (obj) {
startY = obj.event.getLocalPosition(self.parent).y;
});
self.on('move', function (obj) {
- var currentY = obj.event.getLocalPosition(self.parent).y;
+ var currentY = self.parent ? obj.event.getLocalPosition(self.parent).y : 0;
if (startY - currentY > 50) {
isSwipingUp = true;
}
});
@@ -283,20 +283,17 @@
cap.y = 2400;
var lid = self.addChild(new Lid());
lid.x = cap.x;
lid.y = cap.y;
- var deadoralivemessage = self.addChild(new DeadoraliveMessage());
- deadoralivemessage.x = LK.stage.width / 2;
- deadoralivemessage.y = 600;
var redbutton = self.addChild(new RedButton());
- redbutton.x = deadoralivemessage.x;
- redbutton.y = deadoralivemessage.y;
+ redbutton.x = LK.stage.width / 2;
+ redbutton.y = 600;
redbutton.on('down', function () {
redbutton.isTouched = true;
});
var deadoralivemessage = self.addChild(new DeadoraliveMessage());
deadoralivemessage.x = LK.stage.width / 2;
- deadoralivemessage.y = 700;
+ deadoralivemessage.y = 600;
var deadMessage = self.addChild(new DeadMessage());
deadMessage.x = LK.stage.width / 2;
deadMessage.y = LK.stage.height - 700 - deadMessage.height / 2;
deadMessage.visible = false;
8-bit. cartoon. red button. do not touch! Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8-bit. cartoon. black tub stopper with chain. in game asset.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8-bit. cartoon. axe. in game asset. no shadow.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Break in case of emergency square. Ax drawing inside. simple. 8-bit. cartoon. blackand white.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Delete