Hello, wonderful guy who took the time to read my problem.
I've been making a battle system for about a month now, and I've fixed bugs all over, until this one came.
I've been trying lots of things to fix this, but the only luck i've got is I've seen what seems to be causing it:
Sprite_AnimDummy is a normal class that inherits from RGSS2's Sprite_Base. Now in my battlesystem, I have a flag, ORBS.enabled, which marks the presence of enemies. If I enter a map, at the start, where there is already an enemy, THE ERROR DOES NOT OCCUR AT ALL. But when I enter a map, at the start, without an enemy , then transfer to a map with an enemy, it occurs 100% of the time when I press my attack button (A - In keyboard).
I've been trying alot of things, and still no luck. I thought it was my PC, until I tried it in another one. If anyone can help me fix this, I'll thank you from the bottom of my heart. I'll be here to answer any questions about the script. Here's the script if you need it:
-Link Removed-
I've been making a battle system for about a month now, and I've fixed bugs all over, until this one came.
I've been trying lots of things to fix this, but the only luck i've got is I've seen what seems to be causing it:
Code:
# * Show an animation at given coordinates, using a dummy sprite
def show_rbs_anim_at(sx, sy, animation, zoom = 1.00, mirror = false)
sprite = Sprite_AnimDummy.new(@viewport2)
sprite.x = sx # IT IS THIS LINE
sprite.y = sy + 16
sprite.start_animation(animation, zoom, mirror)
@sprite_anim_dummies << sprite
end
Sprite_AnimDummy is a normal class that inherits from RGSS2's Sprite_Base. Now in my battlesystem, I have a flag, ORBS.enabled, which marks the presence of enemies. If I enter a map, at the start, where there is already an enemy, THE ERROR DOES NOT OCCUR AT ALL. But when I enter a map, at the start, without an enemy , then transfer to a map with an enemy, it occurs 100% of the time when I press my attack button (A - In keyboard).
I've been trying alot of things, and still no luck. I thought it was my PC, until I tried it in another one. If anyone can help me fix this, I'll thank you from the bottom of my heart. I'll be here to answer any questions about the script. Here's the script if you need it:
-Link Removed-