User prompt
let the player step on the other platforms like before to collect coins in it, it stuck on their edges. and the movement when climbing on ladders is slow so add some speed for that.
User prompt
remove diagonal movement let only vertical or horizontal when holding mouse button.
User prompt
add vertical movment for the player it can't go up to the ladder!
User prompt
let the player climb the ladder when reach it!
User prompt
fix the player after finishing distance of ladder it outs and continue moving till out from the screen! it must step on the terrains when finishing climbing the ladder not to continue going up!.
User prompt
Limit the distance of player movement to be in the terrains or in ladder only so it will not out of it or from the screen, the enemies must not change their area from terrain to another, let 4 enemies only each one in its area and they can't teleport to another terrain, the enemies can move horizontal and add vertical movement tow.
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'toGlobal')' in or related to this line: 'var gamePos = game.toLocal(obj.parent.toGlobal(obj.position));' Line Number: 253
Code edit (1 edits merged)
Please save this source code
User prompt
Platform Climber
Initial prompt
Create a 2D game have 5 terrains platform like 2x2 large by 500x200px and one in the middle of the 4 terrains, add ladders to reach each area by climbing ladders, add coin at the middle of each terrain from above, add player, add 1 enemy in level1, add 'background1' for 'level1'.
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
coin, hd colors. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Scary blue background of forest, moon, small owl on tree, HD colors. In-Game asset. 2d. High contrast. No shadows
Scary graveyard with different things around it scary things spiders, web spider, skulls, swords, grass, trees.. In-Game asset. 2d. High contrast. No shadows
Scary wallpaper without characters, with all colors, HD colors. In-Game asset. 3d. High contrast. No shadows