Code edit (4 edits merged)
Please save this source code
User prompt
reduce the length of healthbars
User prompt
make halthbars shorter
User prompt
make bullets go through healthbars
User prompt
make bullets not hit healthbars
User prompt
make it so health bars dont have a hitbox
User prompt
make a sound when enemies are hit, and make a sound when the player or base take damage
User prompt
make background music
User prompt
make a sound for when enemies die
User prompt
make the bases health bar as big as the base
User prompt
make the bases healthbar a seperate asset
User prompt
make all the health bars thinner
User prompt
make it so that only the bases healthbar is so thick
User prompt
make the bases healthbar visible over the base
User prompt
make the bases healthbar the same size as the base
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of null (reading 'height')' in or related to this line: 'var healthBarGraphics = self.attachAsset('healthBar', {' Line Number: 33
User prompt
make the healthbar for the base seperate from the others
User prompt
make the health bars on everything but the base much thinner
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of null (reading 'height')' in or related to this line: 'var healthBarGraphics = self.attachAsset('healthBar', {' Line Number: 110
User prompt
make the bases health bar as tall as the base
User prompt
make the bases health bar as big as it is
Code edit (1 edits merged)
Please save this source code
User prompt
make heros health bar below him
User prompt
get rid of keyboard movement
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -60,9 +60,9 @@
});
self.speed = 10;
self.update = function () {
self.y -= self.speed;
- if (self.y < 0 || self.y > 2732 || self.intersects(HealthBar)) {
+ if (self.y < 0 || self.y > 2732) {
self.destroy();
}
};
});