Hello, Everyone. I'm using Blizzard's ABS. When I'm using a skill it's start to crash and show a error message
Script"<script name here> line 6982: Nomethoderror occurred undefined method `color' for nill:Class
Here's the code
What I did wrong. Can anyone help me?? :'(
Script"<script name here> line 6982: Nomethoderror occurred undefined method `color' for nill:Class
Here's the code
Code:
def update_select
# if normal blink should be processed
if @select == 2
# set blink
@sprite.blink_on
# if selected right now
elsif @select == 1
# set color with new alpha
@sprite.color.set(0, 255, 0, (8-Graphics.frame_count%16).abs*24)
else
# set to no color
@sprite.color.set(0, 0, 0, 0)
end
end
#-----------------------------
What I did wrong. Can anyone help me?? :'(