1 decade ago by axphin
Since I'm still learning, I'm having a hard time converting the sample project for jumpnrun to a topdown style game. I cleared out a lot of the code and have been able to get my custom character drawn on the screen, but am having trouble figuring out basic movement. I have the jumpnrun player.js file next to my player.js file in Komodo so I can compare but I'm still a little lost.
Is it just a matter of setting up the init and update functions properly? The character just moves in 4 directions similar to the rpgjs.com example. However mine is even more simple in that the animation only cycles through 3 frames and the sprite just gets rotated to face the direction it is going. I don't have unique sprites for each direction (although learning how to do that would be nice I suppose).
It also took me a while to figure out that the player entity won't show up in weltmeister without adding the addAnim line to specify a starting frame.
It would be great if Impact had a few more gametype sample projects, like topdown (tank, rpg), puzzle game, etc.
Thanks
Is it just a matter of setting up the init and update functions properly? The character just moves in 4 directions similar to the rpgjs.com example. However mine is even more simple in that the animation only cycles through 3 frames and the sprite just gets rotated to face the direction it is going. I don't have unique sprites for each direction (although learning how to do that would be nice I suppose).
It also took me a while to figure out that the player entity won't show up in weltmeister without adding the addAnim line to specify a starting frame.
It would be great if Impact had a few more gametype sample projects, like topdown (tank, rpg), puzzle game, etc.
Thanks