查看: 1721|回复: 1

[已经过期] 脚本不会用

[复制链接]

秋寒

梦石
0
星屑
63
在线时间
801 小时
注册时间
2013-1-17
回帖
1851
发表于 2013-6-20 13:23:39 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
其实,我不会用是有原因的,这个“白云飘飘‘脚本附件链接失效了,只留下脚本,连说明书都没有....
谁帮我看下怎么用
[pre lang="ruby" line="1"]
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
[/pre]

点评

这脚本好奇葩……  发表于 2013-6-21 18:09

梦石
0
星屑
9716
在线时间
2775 小时
注册时间
2008-9-5
回帖
3458

开拓者短篇八RM组冠军短篇九导演组亚军白银编剧

发表于 2013-6-21 18:04:20 | 显示全部楼层
这真的是XP用的?
怎么觉得函数名什么的有点奇怪……
如果没错的话~
Main前Insert~
然后在游戏中用事件调用脚本:
$a = Cloud.new
$a.reday
$a.start
试试看?

点评

到时候就缺少图片了,楼主应先把图片补全==  发表于 2013-6-21 18:40
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部