设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1450|回复: 3
打印 上一主题 下一主题

通行问题拉....

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
55
在线时间
9 小时
注册时间
2006-4-26
帖子
444
跳转到指定楼层
1
发表于 2007-8-18 06:48:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
假如我要让21号事件碰到障碍时打开19号关闭
x = $game_map.events[21].x
y = $game_map.events[21].y
if $game_map.events[21].passable?(x,y,2)
else
$game_switches[19] = false
end
x = $game_map.events[21].x
y = $game_map.events[21].y
if $game_map.events[21].passable?(x,y,4)
else
$game_switches[19] = false
end
x = $game_map.events[21].x
y = $game_map.events[21].y
if $game_map.events[21].passable?(x,y,6)
else
$game_switches[19] = false
end
x = $game_map.events[21].x
y = $game_map.events[21].y
if $game_map.events[21].passable?(x,y,8)
else
$game_switches[19] = false
end
为什么开关一直关闭?
此贴于 2007-8-18 13:48:25 被版主K’提醒,请楼主看到后对本贴做出回应。
群:13283861

Lv1.梦旅人

梦石
0
星屑
55
在线时间
9 小时
注册时间
2006-4-26
帖子
444
2
 楼主| 发表于 2007-8-18 06:48:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
假如我要让21号事件碰到障碍时打开19号关闭
x = $game_map.events[21].x
y = $game_map.events[21].y
if $game_map.events[21].passable?(x,y,2)
else
$game_switches[19] = false
end
x = $game_map.events[21].x
y = $game_map.events[21].y
if $game_map.events[21].passable?(x,y,4)
else
$game_switches[19] = false
end
x = $game_map.events[21].x
y = $game_map.events[21].y
if $game_map.events[21].passable?(x,y,6)
else
$game_switches[19] = false
end
x = $game_map.events[21].x
y = $game_map.events[21].y
if $game_map.events[21].passable?(x,y,8)
else
$game_switches[19] = false
end
为什么开关一直关闭?
此贴于 2007-8-18 13:48:25 被版主K’提醒,请楼主看到后对本贴做出回应。
群:13283861

Lv1.梦旅人

梦石
0
星屑
60
在线时间
45 小时
注册时间
2006-8-23
帖子
303
3
发表于 2007-8-18 21:35:33 | 只看该作者
假如我要让21号事件碰到障碍时打开19号关闭

什么叫做打开19号关闭?

我暂时认为是打开19号开关好了.
$game_switches[19] = false
应该是 $game_switches[19] = true
吧?
系统信息:本贴获得楼主认可,66RPG感谢您的热情解答~
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
764
在线时间
574 小时
注册时间
2006-5-17
帖子
84
4
发表于 2007-8-18 22:04:01 | 只看该作者
LZ的19号开关有无设成"开"?
另外LZ的逻辑是只要该事件碰上四方向任一不通行19号开关就会关闭,
也就是如果事件或人物或地图元件没设穿透的话一碰就会关闭...

系统信息:本贴获得楼主认可,66RPG感谢您的热情解答~
回复 支持 反对

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2026-6-26 13:52

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表