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

Project1

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

[已经解决] 脚本术语

[复制链接]

Lv3.寻梦者

梦石
0
星屑
3526
在线时间
1887 小时
注册时间
2010-6-19
帖子
1210
跳转到指定楼层
1
发表于 2014-8-12 14:36:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
下面的脚本如何改成当行走图的名字中有☆的时候显示成下面这样
  1. [line]  def c4
  2.       case rand(5)
  3.    when 0
  4.      move_upper_left   #向左上移动
  5.      @direction = 8
  6.    when 1
  7.      move_upper_right  #向右上移动
  8.      @direction = 6
  9.    when 2
  10.      move_lower_left   #向左下移动
  11.      @direction = 4   
  12.    when 3
  13.      move_lower_right  #向右下移动
  14.      @direction = 2
  15.    when 4
  16.      @stop_count = 0
  17.    end
  18. end[/line]
复制代码

点评

if @character_name.include?("☆")  发表于 2014-8-12 15:05

评分

参与人数 1星屑 +35 收起 理由
︶ㄣ牛排ぶ + 35 手动认可奖励

查看全部评分

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

本版积分规则

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

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

GMT+8, 2024-9-21 22:54

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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