User prompt
im saying every click, not every 5 clicks
User prompt
make it spawn a random button, either nuke or clone, every click
Code edit (1 edits merged)
Please save this source code
User prompt
make the nuke button spawn after just 1 click and make the clone button spawn after 2 clicks
User prompt
make the clone button spawn after 10 clicks, not 5
User prompt
make the clone button appear along with the nuke
User prompt
fix it
User prompt
turn clonebutton into a sprite
User prompt
make it so that every 5 times you click the button it spawns a button that, when you press it, spawns a smaller clone under the button infinitely
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'sprite')' in or related to this line: 'LK.init.sprite('nukeButton', {' Line Number: 58
User prompt
make it so that every 5 times you press the middle button it spawns a red button called "nuke" which is a sprite and when you press the nuke button it ends the game
User prompt
make it so that every 10 times you press the middle button it spawns another normal button
Initial prompt
What The Button?
===================================================================
--- original.js
+++ change.js
@@ -23,9 +23,9 @@
});
// CloneButton class
var CloneButton = Container.expand(function () {
var self = Container.call(this);
- var cloneButtonGraphics = self.attachAsset('button', {
+ var cloneButtonGraphics = self.attachAsset('cloneButton', {
anchorX: 0.5,
anchorY: 0.5
});
self.width = 50;
a red button with text that. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. pixelated
a button with a cube on it with two eyes and hands but no arms. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a button that is dripping with icicles that says "ice". Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a button with text that says "X". Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a clock. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a button that says "double". Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a button that says "Chaos!". Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a button with text that fades to the right saying "hide". Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a button with a two sided magnet on it. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a fading shirt on a button. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a button with a red button next to a blue button on it. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a button with random rainbow cubes on it over the text "lag". Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a button with a scroll on it. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a button with a ! on it. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a button with a scroll and a computer cursor on it. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.