赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 5060 |
最后登录 | 2014-5-10 |
在线时间 | 2 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 2 小时
- 注册时间
- 2006-11-7
- 帖子
- 170
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
- class Cloud
- def ready
- $p1xx = 384
- $p2xx = 380
- $p3xx = 383
- $p4xx = 480
- $p5xx = 480
- $p1s = 1
- $p2s = 4
- $p3s = 6
- $p4s = 9
- $p5s = 15
- $p1x = 0
- $p2x = $p1xx
- $p3x = -$p1xx
- $p4x = 0
- $p5x = $p1xx
- $p6x = -$p1xx
- $p7x = 0
- $p8x = $p1xx
- $p9x = -$p1xx
- $p10x = 0
- $p11x = $p1xx
- $p13x = 0
- $p14x = $p1xx
- end
- def start
- $p1x += $p1s
- $p2x += $p1s
- $p3x += $p1s
- $p4x += $p2s
- $p5x += $p2s
- $p6x += $p2s
- $p7x += $p3s
- $p8x += $p3s
- $p9x += $p3s
- $p10x += $p4s
- $p11x += $p4s
- $p13x += $p5s
- $p14x += $p5s
- $game_screen.pictures[1].show("c1.png", 0, $p1x, 0, 100, 100, 255, 0)
- $game_screen.pictures[2].show("c1.png", 0, $p2x, 0, 100, 100, 255, 0)
- $game_screen.pictures[3].show("c1.png", 0, $p3x, 0, 100, 100, 255, 0)
- $game_screen.pictures[4].show("c2.png", 0, $p4x, 27, 100, 100, 255, 0)
- $game_screen.pictures[5].show("c2.png", 0, $p5x, 27, 100, 100, 255, 0)
- $game_screen.pictures[6].show("c2.png", 0, $p6x, 27, 100, 100, 255, 0)
- $game_screen.pictures[7].show("c3.png", 0, $p7x, 72, 100, 100, 255, 0)
- $game_screen.pictures[8].show("c3.png", 0, $p8x, 72, 100, 100, 255, 0)
- $game_screen.pictures[9].show("c3.png", 0, $p9x, 72, 100, 100, 255, 0)
- $game_screen.pictures[10].show("c4.png", 0, $p10x, 97, 100, 100, 255, 0)
- $game_screen.pictures[11].show("c4.png", 0, $p11x, 97, 100, 100, 255, 0)
- $game_screen.pictures[13].show("c5.png", 0, $p13x, 112, 100, 100, 255, 0)
- $game_screen.pictures[14].show("c5.png", 0, $p14x, 112, 100, 100, 255, 0)
- #$game_screen.pictures[].show(name,原点,x,y,放大x,放大y,透明度,合成)
- if $p1x >= 640
- $p1x = 640-3 * $p1xx + 1
- end
- if $p2x >= 640
- $p2x = 640-3 * $p1xx + 1
- end
- if $p3x >= 640
- $p3x = 640-3 * $p1xx + 1
- end
- if $p4x >= 640
- $p4x = 640-3 * $p2xx + 1
- end
- if $p5x >= 640
- $p5x = 640-3 * $p2xx + 1
- end
- if $p6x >= 640
- $p6x = 640-3 * $p2xx + 1
- end
- if $p7x >= 640
- $p7x = 640-3 * $p3xx + 1
- end
- if $p8x >= 640
- $p8x = 640-3 * $p3xx + 1
- end
- if $p9x >= 640
- $p9x = 640-3 * $p3xx + 1
- end
- if $p10x >= 640
- $p10x = 640-3 * $p4xx + 1
- end
- if $p11x >= 640
- $p11x = 640-3 * $p4xx + 1
- end
- if $p13x >= 640
- $p13x = 640-3 * $p5xx + 1
- end
- if $p14x >= 640
- $p14x = 640-3 * $p5xx + 1
- end
- end
- end
复制代码
可以实现5层白云在天上飞的效果
代码效率极其低下,因为数组我还不太明白
本人的第一个脚本................
用法:找阿尔西丝先ready再点start
下载范例:http://rpg.blue/upload_program/d/sdbgejsb_test15_106672353.rar
截图:
啊,其实只是模仿一个东西,不过代码是原创,云彩图是引用 |
|