Code edit (2 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
increase the animation speed for the enemy_rower
User prompt
enemy_rower needs to have an animation comprised of 2 frames. the second frame is enemy_rower_1. alternate between these frames once every 500 miliseconds
Code edit (3 edits merged)
Please save this source code
User prompt
move the enemy_rower 50 pixels lower
User prompt
attack the asset Enemy_Rower to the Obstacle similar to how you attached the rower to the player. the enemy_rower needs to overlap the obstacle
User prompt
attack the asset Enemy_Rower to the Obstacle similar to how you attached the rower to the player
User prompt
attack the asset Enemy_Rower to the Obstacle
User prompt
I dont see the 2 instances of the enemy_rower attached to the obstacle. this is a bug, attach them to the obstacle
User prompt
attack the asset Enemy_Rower to the Obstacle. but attach 2 of them with a 50 pixels distance between them
Code edit (1 edits merged)
Please save this source code
User prompt
spawn even more coins
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -26,9 +26,9 @@
});
// Enemy class
var Enemy = Container.expand(function () {
var self = Container.call(this);
- var enemyGraphics = self.attachAsset('obstacle', {
+ var enemyGraphics = self.attachAsset('Enemy_Rower', {
anchorX: 0.5,
anchorY: 0.5
});
self.acceleration = 0;
@@ -55,9 +55,9 @@
});
// Obstacle class
var Obstacle = Container.expand(function () {
var self = Container.call(this);
- var obstacleGraphics = self.attachAsset('Enemy_Rower', {
+ var obstacleGraphics = self.attachAsset('obstacle', {
anchorX: 0.5,
anchorY: 0.5
});
self.speed = obstacleSpeed;