I really enjoy playing with rpgjs, it is the coolest framework I ever used, among anuglar, react and vue 🙂
However, I have lots of experience with typescript, but not so much with 2d game development, and I ask for little assistance.
I would like to develop, arcane bolt skill. After player hits a button, the arcane bolt should go straight forward for some distance. If the bolt collides with another player it should take some HP off this player.
I already created a sprite, with animation. I also created the event, and the bolt appeared on the screen and then disappeared. However, I cannot move it anywhere. I tried to use moveTo function, but it does not work. The fireball not moving anywhere, but it "shakes" on the tile.
What I have done so far:
And finally, I use skill on button press:
And here is the final video:
Is it a good direction?