class Sprite_Timer
alias jingmo_create_bitmap create_bitmap
alias jingmo_update_position update_position
def create_bitmap
jingmo_create_bitmap
self.bitmap = Bitmap.new(200,50)
self.bitmap.font.size=20
self.bitmap.font.color.set(50,62,78)
end
def update_position
x=0
end
end
不加self.的话那bitmap就还是未改写之前的bitmap。
而update_position中x虽然没有加self.却没问题。
下面是原来的方法。