jayn

Hi,

In my game, the green leaves and pink particles become green and pink squares. How can I fix that?
I've sent the files via email.

Thanks
jayn
  • 帖子: 56

Nate

Do the spine-libgdx examples work?

I don't use Kotlin, so sending a Kotlin code doesn't help much. What does this do?
animationState = AnimationState(animationStateData).apply {
setAnimation(0, animationName, loop)
}
头像
Nate

Nate
  • 帖子: 11861

jayn

Nate 写道:Do the spine-libgdx examples work?

I don't use Kotlin, so sending a Kotlin code doesn't help much. What does this do?
animationState = AnimationState(animationStateData).apply {
setAnimation(0, animationName, loop)
}
I guess the spine-libgdx examples should work, I tried it awhile ago.

It creates AnimationState object and then set animation. Same as animationState.setAnimation()
I also have a tree animation with leaves falling down, but this one is working fine without issues. Do you want me to send this project as well?
jayn
  • 帖子: 56

Nate

Ah OK, AnimationState has an apply method, I though maybe it overrides it or something.

If the examples work but your code doesn't, then there is a difference with your code. The next step would be to replace an example's assets with yours. You can also run Skeleton Viewer and see if it renders your skeleton and atlas. If it does, then the runtime is working correctly for your specific assets.
头像
Nate

Nate
  • 帖子: 11861

jayn

I found the issue, the scaling in export was at 0.1 instead of 1. I didn't notice because the sunlight and shadow didn't look that blurry even at low scale.
jayn
  • 帖子: 56

Nate

Aha, glad you found it!
头像
Nate

Nate
  • 帖子: 11861


回到 Runtimes