Samarium
Hello
I prepared a branch on my repository because I do not have enough time to make a clean project for reproduction this week 😞
Branch name: community-200
, you don't have to set up any MongoDB, just npm run dev
.
I am not 100% sure if it's a bug, but in the file modules/heroes/sprite.ts
I try to read sprite.angle
which is constantly updated in onUpdate
hook like this:
console.log('angle', sprite.angle, sprite);
sprite.angle = angle;
so I think that sprite.angle should be the previous angle
value, but it is always 0
, and when I try to log to the console sprite
object there is such an error for angle
:
TypeError: Cannot read properties of null (reading 'rotation')
at get angle [as angle] (http://localhost:3000/node_modules/.vite/deps/@rpgjs_client.js?v=a311608b:21136:27)
at RpgComponent.invokeGetter (<anonymous>:3:28)
Check the video: https://imgur.com/P82Uyes