本帖最后由 沙漠点灰 于 2013-4-22 22:56 编辑
标准凑热闹,顺便吐槽“少女折寿中”- return if $TEST
- loading = Sprite.new
- loading.bitmap = Bitmap.new(122,32)
- loading.bitmap.draw_text(loading.bitmap.rect, "载入中...")
- loading.x = Graphics.width - loading.bitmap.width
- loading.y = Graphics.height- loading.bitmap.height
- show = 23*3
- # 播放器缓存建立
- Window_Music_Player.load{
- show += 1;show = 23*3 if show >= loading.bitmap.width
- loading.src_rect.set(0,0,show,loading.bitmap.height)
- Graphics.update if show % 2 == 0
- }
- loading.dispose
- loading.bitmap.dispose
复制代码 因为有200+张100*100的图片需要建立在缓存里,所以写过load的方法
lz可以试试以下代码的效果,上面是VA的
loading = Sprite.new loading.bitmap = Bitmap.new(122,32) loading.bitmap.draw_text(loading.bitmap.rect, "载入中...") loading.x = 640 - loading.bitmap.width loading.y = 480- loading.bitmap.height show = 23*3 # 播放器缓存建立 200.times{ show += 1;show = 23*3 if show >= loading.bitmap.width loading.src_rect.set(0,0,show,loading.bitmap.height) Graphics.update if show % 2 == 0 } loading.dispose loading.bitmap.dispose
loading = Sprite.new
loading.bitmap = Bitmap.new(122,32)
loading.bitmap.draw_text(loading.bitmap.rect, "载入中...")
loading.x = 640 - loading.bitmap.width
loading.y = 480- loading.bitmap.height
show = 23*3
# 播放器缓存建立
200.times{
show += 1;show = 23*3 if show >= loading.bitmap.width
loading.src_rect.set(0,0,show,loading.bitmap.height)
Graphics.update if show % 2 == 0
}
loading.dispose
loading.bitmap.dispose
┏ (゜ω゜)=☞ |