User prompt
make it so that ghosts hide when player touches boxes
User prompt
make it so the scare goes up when a box is touched by player
User prompt
hide number on top when jumpscare is triggered
User prompt
Fix Bug: 'TypeError: LK.playSound is not a function' in or related to this line: 'LK.playSound('jumpscareSound');' Line Number: 302
User prompt
Fix Bug: 'TypeError: LK.getAsset(...).play is not a function' in or related to this line: 'LK.getAsset('jumpscareSound', {}).play();' Line Number: 302
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'sound')' in or related to this line: 'LK.init.sound('jumpscareSound', {' Line Number: 75
User prompt
can you add a audio to the jumpscare of screaming
User prompt
make a new asset for a jumpscare that shows up when touch ghost and make it a screaming ghost
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'y')' in or related to this line: 'if (powerUps[i].y > 2782) {' Line Number: 270
User prompt
can you use this in my game please
User prompt
make ghosts faster
User prompt
make it so ghost go towards the player
User prompt
remove arrow keys control and other control and change to mouse control
User prompt
controls are not working
User prompt
turn the game back to touch controls
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'ArrowDown')' in or related to this line: 'if (LK.keys['ArrowDown']) {' Line Number: 279
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'ArrowUp')' in or related to this line: 'if (LK.keys['ArrowUp']) {' Line Number: 276
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'ArrowRight')' in or related to this line: 'if (LK.keys['ArrowRight']) {' Line Number: 273
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'ArrowLeft')' in or related to this line: 'if (LK.keys['ArrowLeft']) {' Line Number: 270
User prompt
make the controls with arrow keys instead of cursor
User prompt
make it so the player can move up and down and that instead of avioiding the blocks he has to get them to kill the ghosts
User prompt
add a scary story to it
User prompt
Fix Bug: 'ReferenceError: ghosts is not defined' in or related to this line: 'for (var j = ghosts.length - 1; j >= 0; j--) {' Line Number: 126
User prompt
Fix Bug: 'ReferenceError: ghosts is not defined' in or related to this line: 'for (var j = ghosts.length - 1; j >= 0; j--) {' Line Number: 126
===================================================================
--- original.js
+++ change.js
@@ -29,8 +29,14 @@
});
self.speed = 5;
self.move = function () {
self.y += self.speed;
+ self.on('down', function (obj) {
+ var touchPos = obj.event.getLocalPosition(game);
+ ghosts.forEach(function (ghost) {
+ ghost.visible = false;
+ });
+ });
};
});
// Character class
var Character = Container.expand(function () {
Ghost that is spooky. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Player that is scared. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
screaming ghost. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.