Hi folks!
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:
Spritesheet:
https://gist.github.com/KoderFPV/3f068eda49d0ef908e569ba382d304bf
Skill:
https://gist.github.com/KoderFPV/3ecf7e4fe8c01d557f21c8d1802561c8
Event:
https://gist.github.com/KoderFPV/c41089027529eed36d11c436c34577cf
And finally, I use skill on button press:
https://gist.github.com/KoderFPV/c01140ffb8788e8fadac0ffff2b3d380
And here is the final video:
https://jumpshare.com/s/HxRp7SWjeo0m7sMHFOcZ
Is it a good direction?