User prompt
Please move the anchor point of the character to the bottom rather than the center.
User prompt
In the GameUpdate method, remove the code related to PlatformIntersection.
User prompt
In the playerUpdate method, use playerPreviousVelocity for the platform's intersection test.
User prompt
In the platform jumping related code in update method, please use previous velocity for the velocity check rather than self.velocity.
User prompt
Move the code where you increase the velocity to the bottom of the update method.
User prompt
It looks like you're setting the velocity to zero when I am standing on a platform. Only set my velocity and player position if my velocity is currently positive, allowing me to jump off a platform when I'm standing on it.
User prompt
I still seem unable to jump when I am standing on a platform. Please fix this.
User prompt
I should be able to jump from a platform when standing on it. Also, it looks like my center of my character is where it's aligned to the platform. I should be standing on top of the platform. Please align the platform and the player such that that happens.
User prompt
At a platform class that gives me platforms I can stand up that also comes in from the right of the screen moving towards the left.
User prompt
double how high I'm able to jump.
User prompt
Update the system such that the character has velocity and when you jump simply set the velocity to negative.
User prompt
increase how high we are able to jump by 10x.
User prompt
Please fix the bug: 'ReferenceError: Can't find variable: floorGraphics' in or related to this line: 'if (self.y + playerGraphics.height / 2 >= floor.y - floorGraphics.height / 2) {' Line Number: 49
User prompt
Please add gravity to the character such that it is able to jump when pressing the mouse, make it stand on the floor.
User prompt
Please add a floor below the character.
User prompt
Please reverse the direction of the obstacle.
User prompt
Oh, this is a top-down runner where you're running from the button up towards the screen. What I would really like is a sideways runner where I seem to be running from the left of the screen to the right of the screen. Please update the obstacles such that they move from the left of the screen to the right of the screen towards the player.
Initial prompt
Endless Runner Pro
===================================================================
--- original.js
+++ change.js
@@ -9,10 +9,10 @@
anchorY: 0.5
});
self.speed = 5;
self.update = function () {
- self.x += self.speed;
- if (self.x > 2048) {
+ self.x -= self.speed;
+ if (self.x < 0) {
self.destroy();
}
};
});
@@ -54,9 +54,9 @@
var obstacles = [];
// Function to spawn obstacles
function spawnObstacle() {
var obstacle = new Obstacle();
- obstacle.x = -50;
+ obstacle.x = 2048 + 50;
obstacle.y = Math.random() * 2732;
obstacles.push(obstacle);
game.addChild(obstacle);
}