User prompt
Bug: none of the players are visible now
User prompt
Fix player visibility
User prompt
Check if player exits in tick event before using it
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self.player.y')' in this line: 'self.playerYPositionText = new Text2('Y: ' + self.player.y, {' Line Number: 86
User prompt
Fix player visibility
User prompt
Fix player visibility
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self.player.y')' in this line: 'self.playerYPositionText = new Text2('Y: ' + self.player.y, {' Line Number: 86
User prompt
Fix bug player isn’t visible anymore
User prompt
Hide decimals of y in the gui
User prompt
Don’t recreate playerYPositionText in handleSelection. Create it game and set the value in a tick event
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'LK.gui.bottomCenter.addChild')' in this line: 'LK.gui.bottomCenter.addChild(playerYPositionText);' Line Number: 192
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'LK.gui.bottomCenter.children')' in this line: 'var playerYPositionText = LK.gui.bottomCenter.children[0];' Line Number: 187
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'LK.gui.bottomCenter.addChild')' in this line: 'LK.gui.bottomCenter.addChild(playerYPositionText);' Line Number: 92
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self.player.y')' in this line: 'var playerYPositionText = new Text2('Y: ' + self.player.y, {' Line Number: 83
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self.player.y')' in this line: 'var playerYPositionText = new Text2('Y: ' + self.player.y, {' Line Number: 83
User prompt
Add player y position on the gui
User prompt
Change the 70 constants in handleSelection to 120
User prompt
Set miny to candyCanes[0].y
User prompt
Set miny offset to 0
User prompt
Change the miny offset to -70
User prompt
Set the minY offset to 70
User prompt
For minY set the offset to 0
User prompt
Use 140 instead of 70 in handleSelection
User prompt
Fix all candies go larger on mouse down. Should be only the currently selected ones
User prompt
Fix selection counter goes from 1 to 3 without the value 2
===================================================================
--- original.js
+++ change.js
@@ -102,8 +102,12 @@
self.computerPlayer = new ComputerPlayer();
self.computerPlayer.x = 1648;
self.computerPlayer.y = 1324;
self.addChild(self.computerPlayer);
+ self.player = new Player();
+ self.player.x = 400;
+ self.player.y = 70;
+ self.addChild(self.player);
var background = self.createAsset('background', 'Game Background', 0.2545, 0.215);
self.addChild(background);
var candyCanes = [];
for (var i = 0; i < 12; i++) {
a christmas wooden board Background image. High contrast. No shadows.
a vertical christmas wooden board with snow, and decorations on its sides Background image. High contrast. No shadows.
a photo-realistic white and red vertical candy stick slice Single Game Texture. No background. High contrast. No shadows.
a horizontal santa's arm with a white glove and the index pointing to the right Single Game Texture. No background. High contrast. No shadows.
an green hairy grinch's arm, pointing in the horizontal direction, the index finger pointing to the left Single Game Texture. No background. High contrast. No shadows.
a photo-realistic white and red twisted candy stick slice in vertical position and with an extinguished wick. At its center, a simple white rectangular "TNT" sticker in the same direction as the stick Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a top view of a TNT explosion fire Background image. High contrast. No shadows.
A funny Santa Claus disheveled and covered by black soot after an explosion. stary night. High contrast.
a futuristic white robot arm. horizontal direction. the index finger pointing to the left. Single Game Texture. No background. High contrast. No shadows.
A old super hero Santa Claus holding a candy cane in his hand High contrast.
frame of an empty christmas themed popup with a decorated border User interface
a single mat rounded empty button User interface