查看: 1370|回复: 2

脚本错误帮忙查看错因

  [复制链接]
梦石
0
星屑
50
在线时间
2 小时
注册时间
2006-11-7
回帖
119
发表于 2008-11-9 22:32:36 | 显示全部楼层 |阅读模式

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

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

×
class cloud
  def start
    $game_screen.pictures[1].show("c1.png", 0, 0, 0, 100, 100, 100, 0)
    $game_screen.pictures[2].show("c1.png", 0, 481, 0, 100, 100, 100, 0)
    $game_screen.pictures[3].show("c1.png", 0, 961, 0, 100, 100, 100, 0)
    $game_screen.pictures[4].show("c2.png", 0, 0, 27, 100, 100, 100, 0)
    $game_screen.pictures[5].show("c2.png", 0, 481, 27, 100, 100, 100, 0)
    $game_screen.pictures[6].show("c2.png", 0, 961, 27, 100, 100, 100, 0)
    $game_screen.pictures[7].show("c3.png", 0, 0, 72, 100, 100, 100, 0)
    $game_screen.pictures[8].show("c3.png", 0, 481, 72, 100, 100, 100, 0)
    $game_screen.pictures[9].show("c3.png", 0, 961, 72, 100, 100, 100, 0)
    $game_screen.pictures[10].show("c4.png", 0, 0, 97, 100, 100, 100, 0)
    $game_screen.pictures[11].show("c4.png", 0, 481, 97, 100, 100, 100, 0)
    $game_screen.pictures[12].show("c4.png", 0, 961, 97, 100, 100, 100, 0)
    $game_screen.pictures[13].show("c5.png", 0, 0, 112, 100, 100, 100, 0)
    $game_screen.pictures[14].show("c5.png", 0, 481, 112, 100, 100, 100, 0)
    $game_screen.pictures[15].show("c5.png", 0, 961, 112, 100, 100, 100, 0)
    #$game_screen.pictures[].show(name,原点,x,y,放大x,放大y,透明度,合成)
    #$game_screen.pictures[].move(时间,原点,x,y,放大x,放大y,透明度,合成)
  end
end

打开游戏加载时就提示第一行syntax error
版务信息:本贴由楼主自主结贴~

神隐的主犯

梦石
0
星屑
553
在线时间
271 小时
注册时间
2008-2-22
回帖
7534

贵宾

发表于 2008-11-9 22:33:41 | 显示全部楼层
class Cloud

类名 首字母要大写。
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~

《天空之城 —— 破碎的命运》
回复

使用道具 举报

梦石
0
星屑
50
在线时间
2 小时
注册时间
2006-11-7
回帖
119
 楼主| 发表于 2008-11-9 22:34:32 | 显示全部楼层
...........................
{/dk}哇哦竟然犯这样错误.....................
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部