- 36
- Posts
- 9
- Years
- Seen Sep 28, 2017
Hello everyone!
I'd like to introduce myself: my nickname is AGSoldier and I am a developer of this fan-made project called Pokémon Xenoverse. Since I'm not so comfortable using the Ruby scripting language, I'm having some problems with a script, and I'd like to ask you if there's some problem with my code.
I'm trying to play an animation over a Pokémon icon sprite in PBScreen_Party when his form change. When an iten si given to a Pokémon should start the animation, and while the animation is running, the icon sprite under it should refresh. I've create a two methods: the first one calls the second one and print something on the screen, the second one should start the animation while a yield process called in the first method should refrsh the icon sprite.
My question is: how can I render this animation? I've found the x and y coordinates of the Pokémon icon sprite, but I can't render and play the animation. I tried to put it in the sprite hash and let the Graphics.update method take care of him, but it wouldn't work.
If someone can help me would be really appreciated.
I'd like to introduce myself: my nickname is AGSoldier and I am a developer of this fan-made project called Pokémon Xenoverse. Since I'm not so comfortable using the Ruby scripting language, I'm having some problems with a script, and I'd like to ask you if there's some problem with my code.
I'm trying to play an animation over a Pokémon icon sprite in PBScreen_Party when his form change. When an iten si given to a Pokémon should start the animation, and while the animation is running, the icon sprite under it should refresh. I've create a two methods: the first one calls the second one and print something on the screen, the second one should start the animation while a yield process called in the first method should refrsh the icon sprite.
My question is: how can I render this animation? I've found the x and y coordinates of the Pokémon icon sprite, but I can't render and play the animation. I tried to put it in the sprite hash and let the Graphics.update method take care of him, but it wouldn't work.
If someone can help me would be really appreciated.