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

Project1

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

[RMVX发布] RMVX横版动作游戏范例

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
21 小时
注册时间
2011-8-22
帖子
13
跳转到指定楼层
1
发表于 2011-8-28 10:51:55 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
本帖最后由 lotsofone 于 2011-10-6 15:41 编辑

我做了一个在RMVX里玩动作游戏的脚本。可以用来做简单的动作类游戏,拥有显示文章、场所移动的功能。如果你想试试想试试效果,可以直接下载。
RASB V1.0.rar (309.03 KB, 下载次数: 2268)

注意游戏有两关,第一关算是RMVX最简单的动作类游戏吧,就是在地图上有很多人追你,你要躲开,到达右边的出口。第二关才是真正的动作类游戏。


lotsofone于2011-8-28 10:56补充以下内容:
上游戏截图
第一关

第二关


使用教程:先新建一个事件,里面先输入:
                  公共事件:初始化
  1. $scene = Scene_Action.new #进入动作游戏场景
复制代码
然后触发这个事件,就会发现你进入了动作游戏,但除了角色什么都没有。
如果在事件里输入
                  公共事件:初始化
  1. $game_hard_thing[1] = [1,30,60,400,8]
复制代码
  1. $scene = Scene_Action.new
复制代码
触发事件,你就会发现你右边有一块地板,然后你什么都没碰到就掉下去了。
首先我来解释$game_hard_thing[1] = [1,30,60,400,8]是什么意思。
“30”就是距离左边的距离,“60”是距离上面的距离,“400”是地板宽度,“8”是地板高度,下图会更直观。

怎么让角色站在地板上呢?
输入:
                  公共事件:初始化
                  变量操作:【0011:角色x】= 60
  1. $game_hard_thing[1] = [1,30,60,400,8]
复制代码
  1. $scene = Scene_Action.new
复制代码
角色x = 60 就是把角色右移了,如下图。

这次再触发事件,就能让角色站在地板上了,知道怎么做了吧,就这样做出复杂的游戏吧。
游戏复杂,可如果掉下去怎么办?那就永远不停地掉了。输入
                  公共事件:初始化
                  变量操作:【0011:角色x】= 60
  1. $game_hard_thing[1] = [1,30,60,400,8]
复制代码
  1. $game_soft_thing[1] = [1,-270,100,1000,8]
复制代码
  1. $scene = Scene_Action.new
复制代码
$game_hard_thing是不可穿越的区域,而$game_soft_thing是可穿越的区域,一般做时间用。
$game_soft_thing[1] = [1,-270,100,1000,8]的“1”意思是指事件类型是1,1代表接触该事件立即死亡。
触发事件,就会发现下面加了一条长长的红色事件,这样掉下去就会死。
上面讲到事件类型为1时是立即死亡。为2时就是场所移动或出口。如果为2,后面就要加一些参数。
如果插如这一句
  1. $game_soft_thing[2]=[2,50,-4,77,64,"end"]
复制代码
事件类型为2的时候,代表场所移动或通关,这个事件是一个门,在门的旁边按↓就可以进入。注意,此事件的参数的第3项和第4项必须为“77”和“64”。“end”代表是通关。如果写成“move”就是场所移动,可以移动到什么地方,不过又要多两个参数,如下。
  1. $game_soft_thing[3]=[2,50,-4,77,64,"move",-100,100]
复制代码
至于它是什么意思,你们自己琢磨琢磨吧。全部都有教程,对脚本技术的提高没好处。
当事件类型为3时,什么意思和具体用法你们也自己琢磨琢磨,只要仔细看脚本编辑器里■Scene_Action的344到367行。自己研究脚本才是学习脚本最好的方法。


修正一个bug,在第一百五十几行有一个调试用的
  1.     if Kboard.press?($R_Key_A)
  2.       p @touch[1],@touch[2],@touch[3],@touch[4]
  3.     end
复制代码
使得任何时候按下a都会显示,所以在后面加上and $DEBUG
如果脚本出现改动,使下面的脚本与我上传的文件里的脚本不同,以下面的脚本为准。
2011-10-6更新
  1. #==============================================================================
  2. # ■ Scene_Action
  3. #------------------------------------------------------------------------------
  4. #  处理游戏画面的类。
  5. #==============================================================================
  6. #$DEBUG = true #这一行可以调整
  7. class Scene_Action < Scene_Base
  8.   def make_sure_date #数据
  9.     @player_direction = 1
  10.     @player_cartoon = 2
  11.     @speed_x_abs_max = $game_variables[1]
  12.     @player_jumping_skill = $game_variables[2]
  13.     @ground_f = $game_variables[3]
  14.     @thing_max = $game_hard_thing.size-1
  15.     @event_max = $game_soft_thing.size-1
  16.     @player_x = $game_variables[11]
  17.     @player_y = $game_variables[12]
  18.     @player_velocity_x = $game_variables[13]
  19.     @player_velocity_y = $game_variables[14]
  20.     @text1 = $game_variables[21]
  21.     @text2 = $game_variables[22]
  22.     @text3 = $game_variables[23]
  23.     @text4 = $game_variables[24]
  24.     @text1 = nil if $game_variables[21] == 0
  25.     @text2 = nil if $game_variables[22] == 0
  26.     @text3 = nil if $game_variables[23] == 0
  27.     @text4 = nil if $game_variables[24] == 0
  28.     @touch = []
  29.     @cartoon_spend = 7
  30.     @cartoon_comput = @cartoon_spend
  31.     @dead_have_wait = 0
  32.     @player_dead = false
  33.     @player_width = 6
  34.     @player_height = 32
  35.     @passage1 = Window_Base.new(0,0,544,56)
  36.     @passage1.opacity = 0
  37.     @passage1.z = 20
  38.     @passage2 = Window_Base.new(0,24,544,56)
  39.     @passage2.opacity = 0
  40.     @passage2.z = 20
  41.     @passage3 = Window_Base.new(0,48,544,56)
  42.     @passage3.opacity = 0
  43.     @passage3.z = 20
  44.     @passage4 = Window_Base.new(0,72,544,56)
  45.     @passage4.opacity = 0
  46.     @passage4.z = 20
  47.     @passage_wait = 500
  48.     passage
  49.   end
  50.   
  51.   def start #开始包括:数据处理;生成视区;生成白底;生成元件;生成事件;生成角色
  52.     make_sure_date
  53.     create_viewports
  54.     create_white_base
  55.     create_things
  56.     create_events
  57.     create_player
  58.     update_player
  59.   end
  60.   def create_viewports
  61.     @viewport5 = Viewport.new(0, 0, 544, 416)
  62.     @viewport10 = Viewport.new(0, 0, 544, 416)
  63.     @viewport13 = Viewport.new(0, 0, 544, 416)
  64.     @viewport15 = Viewport.new(0, 0, 544, 416)
  65. #~     @viewport20 = Viewport.new(0, 0, 544, 416)
  66.     @viewport5.z = 5
  67.     @viewport10.z = 10
  68.     @viewport13.z = 13
  69.     @viewport15.z = 15
  70. #~     @viewport20.z = 20
  71.   end
  72.   def create_white_base
  73.     @white_base = Sprite.new(@viewport5)
  74.     @white_base.bitmap = Bitmap.new("Graphics/System/白底")
  75.     @white_base.src_rect = Rect.new(0,0,544,416)
  76.     @white_base.x = 0
  77.     @white_base.y = 0
  78.   end
  79.   def create_things
  80.     @game_showing_thing = []
  81.     for num in 1..@thing_max
  82.       case $game_hard_thing[num][0]
  83.       when 1
  84.         @game_showing_thing[num] = Sprite.new(@viewport10)
  85.         @game_showing_thing[num].bitmap = Bitmap.new("Graphics/System/事物")
  86.         @game_showing_thing[num].x = $game_hard_thing[num][1]-@player_x+256
  87.         @game_showing_thing[num].y = $game_hard_thing[num][2]-@player_y+192
  88.         #@game_showing_thing[num].src_rect = Rect.new(0,0,$game_hard_thing[num][3],$game_hard_thing[num][4])
  89.         @game_showing_thing[num].src_rect = Rect.new(0,0,1,1)
  90.         @game_showing_thing[num].zoom_x = $game_hard_thing[num][3]
  91.         @game_showing_thing[num].zoom_y = $game_hard_thing[num][4]
  92.       else
  93.         
  94.       end
  95.     end      
  96.   end
  97.   def create_events
  98.     @game_showing_event = []
  99.     for num in 1..@event_max
  100.       case $game_soft_thing[num][0]
  101.       when 1
  102.         @game_showing_event[num] = Sprite.new(@viewport13)
  103.         @game_showing_event[num].bitmap = Bitmap.new("Graphics/System/死亡")
  104.         @game_showing_event[num].x = $game_soft_thing[num][1]-@player_x+256
  105.         @game_showing_event[num].y = $game_soft_thing[num][2]-@player_y+192
  106.         @game_showing_event[num].src_rect = Rect.new(0,0,1,1)
  107.         @game_showing_event[num].zoom_x = $game_soft_thing[num][3]
  108.         @game_showing_event[num].zoom_y = $game_soft_thing[num][4]
  109.       when 2
  110.         @game_showing_event[num] = Sprite.new(@viewport13)
  111.         @game_showing_event[num].bitmap = Bitmap.new("Graphics/System/场所移动或出口")
  112.         @game_showing_event[num].x = $game_soft_thing[num][1]-@player_x+256
  113.         @game_showing_event[num].y = $game_soft_thing[num][2]-@player_y+192
  114.         @game_showing_event[num].src_rect = Rect.new(11,192,77,64)
  115.         @game_showing_event[num].zoom_x = 1
  116.         @game_showing_event[num].zoom_y = 1
  117.       else
  118.         @game_showing_event[num] = Sprite.new(@viewport13)
  119.         if $DEBUG
  120.           @game_showing_event[num].bitmap = Bitmap.new("Graphics/System/制作人调试用")
  121.         else
  122.           @game_showing_event[num].bitmap = Bitmap.new("Graphics/System/空白")
  123.         end
  124.         @game_showing_event[num].x = $game_soft_thing[num][1]-@player_x+256
  125.         @game_showing_event[num].y = $game_soft_thing[num][2]-@player_y+192
  126.         @game_showing_event[num].src_rect = Rect.new(0,0,1,1)
  127.         @game_showing_event[num].zoom_x = $game_soft_thing[num][3]
  128.         @game_showing_event[num].zoom_y = $game_soft_thing[num][4]
  129.       end
  130.     end      
  131.   end
  132.   def create_player
  133.     @showing_player = Sprite.new(@viewport15)
  134.     @showing_player.bitmap = Bitmap.new("Graphics/Characters/Actor1")
  135.     @showing_player.src_rect = Rect.new(32,0,32,32)
  136.     @showing_player.x = 256
  137.     @showing_player.y = 192
  138.   end
  139.   
  140.   def update #画面更新包括:按下重置;接触重置;接触判断;按钮响应;地心引力;
  141.     #角色移动;移动事物;移动事件;更新角色图像;事件响应;转到死亡场景计算
  142.     #文章显示
  143.     @have_moved = false
  144.     @pressing_down = false
  145.     touch_check_update
  146.     touch_check_using
  147.     key_pressing
  148.     ground_f_comput
  149.     player_truly_move
  150.     move_thing
  151.     move_event
  152.     update_player
  153.     map_event
  154.     scene_dead_comput
  155.     passage_wait
  156.     if Kboard.press?($R_Key_A) and $DEBUG #这里需要■full kboard的支持,文件里有。
  157.       p @touch[1],@touch[2],@touch[3],@touch[4]
  158.     end
  159.    
  160.   end
  161.   def touch_check_update
  162.     @touch[1]=false  
  163.     @touch[2]=false
  164.     @touch[3]=false
  165.     @touch[4]=false
  166.   end
  167.   def touch_check_all
  168.    
  169.   end
  170.   def touch_check_using
  171.     touch_check_down  if @player_velocity_y >= 0
  172.     touch_check_up    if @player_velocity_y <= 0
  173.     touch_check_left  if @player_velocity_x <= 0
  174.     touch_check_right if @player_velocity_x >= 0
  175.   end
  176.   def touch_check_down
  177.     for num in 1..@thing_max
  178.       if $game_hard_thing[num][0]==1
  179.         x = $game_hard_thing[num][1]
  180.         y = $game_hard_thing[num][2]
  181.         width = $game_hard_thing[num][3]
  182.         height = $game_hard_thing[num][4]
  183.         if @player_x+16+@player_width/2 >= x and @player_x+16-@player_width/2 <= x+width and @player_y+16+@player_height/2 >= y and @player_y+16+@player_height/2 < y+15
  184.           @touch[1] = true
  185.           @player_y = y-16-@player_height/2
  186.           @player_velocity_y = 0 if @player_velocity_y >0
  187.           return true
  188.         end
  189.       end
  190.     end
  191.   end
  192.   def touch_check_left
  193.     for num in 1..@thing_max
  194.       if $game_hard_thing[num][0]==1
  195.         x = $game_hard_thing[num][1]
  196.         y = $game_hard_thing[num][2]
  197.         width = $game_hard_thing[num][3]
  198.         height = $game_hard_thing[num][4]
  199.         if @player_y < y+height and @player_y+32 > y and @player_x+13 <= x+width and @player_x+13 > x+width-6
  200.           @touch[2] = true
  201.           @player_x = x+width-13
  202.           @player_velocity_x = 0 if @player_velocity_x <0
  203.           return true
  204.         end
  205.       end
  206.     end
  207.   end
  208.   def touch_check_right
  209.     for num in 1..@thing_max
  210.       if $game_hard_thing[num][0]==1
  211.         x = $game_hard_thing[num][1]
  212.         y = $game_hard_thing[num][2]
  213.         width = $game_hard_thing[num][3]
  214.         height = $game_hard_thing[num][4]
  215.         if @player_y < y+height and @player_y+32 > y and @player_x+32-13 >= x and @player_x+32-13 < x+6
  216.           @touch[3] = true
  217.           @player_x = x+13-32
  218.           @player_velocity_x = 0 if @player_velocity_x >0
  219.           return true
  220.         end
  221.       end
  222.     end
  223.   end
  224.   def touch_check_up
  225.     for num in 1..@thing_max
  226.       if $game_hard_thing[num][0]==1
  227.         x = $game_hard_thing[num][1]
  228.         y = $game_hard_thing[num][2]
  229.         width = $game_hard_thing[num][3]
  230.         height = $game_hard_thing[num][4]
  231.         if @player_x+32-13 > x and @player_x+13 < x+width and @player_y <= y+height and @player_y > y+height-15
  232.           @touch[4] == true
  233.           @player_y = y+height
  234.           @player_velocity_y = 0 if @player_velocity_y < 0
  235.           return true
  236.         end
  237.       end
  238.     end
  239.   end
  240.   def key_pressing
  241.     if @player_dead == true
  242.       return true
  243.     end
  244.     case Input.dir8 #注意输出的是1,2,3,4,6,7,8,9
  245.     when 0    #什么也不按
  246.       if @touch[1]==true
  247.         @player_velocity_x = 0
  248.         @player_direction = 1
  249.       end
  250.     when 1    #左下
  251.       if @touch[1]==true
  252.         @player_velocity_x = -@speed_x_abs_max if @touch[2] == false     
  253.         @player_direction = 2
  254.         @pressing_down = true
  255.       end                                                           
  256.     when 2 #下
  257.       if @touch[1]==true
  258.         @player_velocity_x = 0
  259.         @player_direction = 1
  260.         @pressing_down = true
  261.       end                                                           
  262.     when 3 #右下
  263.       if @touch[1]==true
  264.         @player_velocity_x = @speed_x_abs_max if @touch[3] == false
  265.         @player_direction = 3
  266.         @pressing_down = true
  267.       end
  268.     when 4 #左
  269.       if @touch[1]==true
  270.         @player_velocity_x = -@speed_x_abs_max if @touch[2] == false
  271.         @player_direction = 2
  272.       end                                                           
  273.     when 6 #右
  274.       if @touch[1]==true
  275.         @player_velocity_x = @speed_x_abs_max if @touch[3] == false
  276.         @player_direction = 3  
  277.       end
  278.     when 7 #左上
  279.       if @touch[1]==true
  280.         @player_velocity_x = -@speed_x_abs_max if @touch[2] == false
  281.         @player_velocity_y = -@player_jumping_skill
  282.         @player_direction = 2
  283.       end
  284.     when 8  #上
  285.       if @touch[1]==true
  286.         @player_velocity_y = -@player_jumping_skill
  287.         @player_velocity_x = 0
  288.         @player_direction = 1
  289.       end                                                         
  290.     when 9  #右上
  291.       if @touch[1]==true
  292.         @player_velocity_x = @speed_x_abs_max if @touch[3] == false  
  293.         @player_velocity_y = -@player_jumping_skill
  294.         @player_direction = 3
  295.       end
  296.     end

  297.   end
  298.   def ground_f_comput
  299.     @player_velocity_y += @ground_f if @touch[1]==false
  300.   end
  301.   def player_truly_move
  302.     @player_x += @player_velocity_x
  303.     @player_y += @player_velocity_y
  304.   end
  305.   def move_thing
  306.     for num in 1..@thing_max
  307.       @game_showing_thing[num].x = $game_hard_thing[num][1]-@player_x+256
  308.       @game_showing_thing[num].y = $game_hard_thing[num][2]-@player_y+192
  309.     end
  310.   end
  311.   def move_event
  312.     for num in 1..@event_max
  313.       @game_showing_event[num].x = $game_soft_thing[num][1]-@player_x+256
  314.       @game_showing_event[num].y = $game_soft_thing[num][2]-@player_y+192
  315.     end
  316.   end
  317.   def update_player
  318.     @cartoon_comput += 1
  319.     @cartoon_comput = @cartoon_spend*2 if @touch[1]==false
  320.     @cartoon_comput = @cartoon_spend if @player_velocity_x == 0
  321.     if @cartoon_comput > 0 and @cartoon_comput <= @cartoon_spend
  322.       @player_cartoon = 2
  323.     elsif @cartoon_comput <= @cartoon_spend*2
  324.       @player_cartoon = 3
  325.     elsif @cartoon_comput <= @cartoon_spend*3
  326.       @player_cartoon = 4
  327.     elsif @cartoon_comput <= @cartoon_spend*4
  328.       @player_cartoon = 1
  329.     else
  330.       @cartoon_comput = 1
  331.       @player_cartoon = 2
  332.     end
  333.    
  334.     x = @player_cartoon*32-32
  335.     x = 32 if @player_cartoon == 4
  336.     case @player_direction
  337.     when 1
  338.       y = 0
  339.     when 2
  340.       y = 32
  341.     when 3
  342.       y = 64
  343.     end
  344.    
  345.     @showing_player.src_rect = Rect.new(x,y,32,32)
  346.   end
  347.   def map_event
  348.     for num in 1..@event_max
  349.       type = $game_soft_thing[num][0]
  350.       x = $game_soft_thing[num][1]
  351.       y = $game_soft_thing[num][2]
  352.       width = $game_soft_thing[num][3]
  353.       height = $game_soft_thing[num][4]
  354.       if @player_x+13 < x+width and @player_x+32-13 > x and @player_y < y+height and @player_y+32 > y
  355.         
  356.         case type
  357.         when 0
  358.           return true #什么也不做,可以算做由于独立开关使事件消失。
  359.         when 1 #立即死亡
  360.           event_type_1
  361.         when 2 #场所移动或出口
  362.           @num = num
  363.           event_type_2 if @player_dead == false and @have_moved == false
  364.         when 3 #显示文章
  365.           @num = num
  366.           event_type_3 if @player_dead == false
  367.         end
  368.       end      
  369.     end
  370.   end  
  371.   def event_type_1
  372.     unless @player_dead == true
  373.       @showing_player.dispose
  374.       @showing_player = Sprite.new(@viewport15)
  375.       @showing_player.bitmap = Bitmap.new("Graphics/Characters/Actor1-1dead")
  376.       @showing_player.src_rect = Rect.new(32,0,32,32)
  377.       @showing_player.x = 256
  378.       @showing_player.y = 192
  379.       
  380.       @player_width = 32
  381.       @player_height = 14
  382.    
  383.       if @player_direction == 2
  384.         @showing_player.src_rect = Rect.new(32,64,32,32)
  385.         @player_velocity_x = 4
  386.         @player_velocity_y = -5
  387.         @player_direction = 3
  388.       else
  389.         @showing_player.src_rect = Rect.new(32,32,32,32)
  390.         @player_velocity_x = -4
  391.         @player_velocity_y = -5
  392.         @player_direction = 2
  393.       end
  394.     end
  395.     @player_dead = true
  396.     @viewport5.z = -4
  397.     @viewport10.z = -3
  398.     @viewport13.z = -2
  399.     @viewport15.z = -1
  400.   end
  401.   def event_type_2
  402.     if @pressing_down == true
  403.       do_what = $game_soft_thing[@num][5]
  404.       case do_what
  405.       when "map"
  406.         @viewport5.z = -4
  407.         @viewport10.z = -3
  408.         @viewport13.z = -2
  409.         @viewport15.z = -1  
  410.         $scene = Scene_Map.new
  411.       when "move"
  412.         @have_moved = true
  413.         Graphics.fadeout(20)
  414.         @player_x = $game_soft_thing[@num][6]
  415.         @player_y = $game_soft_thing[@num][7]
  416.         move_thing
  417.         move_event
  418.         Graphics.update
  419.         Graphics.fadein(20)
  420.       when "end"
  421.         passage_add("恭喜通关,感谢您的游戏。")        
  422.         Graphics.wait(100)
  423.         Graphics.fadeout(200)
  424.         Graphics.wait(20)
  425.         $scene = Scene_Title.new
  426.       else
  427.       end
  428.     end
  429.   end
  430.   def event_type_3
  431.     do_what = $game_soft_thing[@num][5]
  432.     $game_soft_thing[@num][0] = 0
  433.     passage_add(do_what)
  434.   end
  435.   def scene_dead_comput
  436.     @dead_have_wait += 1 if @player_dead == true
  437.     if @player_dead == true
  438.       @passage1.dispose unless @passage1.disposed?
  439.       @passage2.dispose unless @passage2.disposed?
  440.       @passage3.dispose unless @passage3.disposed?
  441.       @passage4.dispose unless @passage4.disposed?
  442.     end
  443.     $scene = Scene_Gameover.new if @player_dead == true and (@touch[1] == true or @dead_have_wait >= 300)
  444.   end
  445.   
  446.   def passage_wait
  447.     @passage_wait -= 1
  448.     if @passage_wait <= 0
  449.       @passage_wait = 400
  450.       @text1 = nil
  451.       passage
  452.     end
  453.   end
  454.   def passage_add(add_what)
  455.     if @text4 == nil
  456.       @text4 = add_what
  457.     else
  458.       @text1 = @text2
  459.       @text2 = @text3
  460.       @text3 = @text4
  461.       @text4 = add_what
  462.     end
  463.     @passage_wait = 400
  464.     passage
  465.   end
  466.   def passage
  467.     @passage1.dispose unless @passage1.disposed?
  468.     @passage2.dispose unless @passage2.disposed?
  469.     @passage3.dispose unless @passage3.disposed?
  470.     @passage4.dispose unless @passage4.disposed?
  471.     a = [@text1, @text2, @text3, @text4]
  472.     a.compact!
  473.     @text1 = a[0]
  474.     @text2 = a[1]
  475.     @text3 = a[2]
  476.     @text4 = a[3]
  477. #~     if @player_dead == true
  478. #~       return true
  479. #~     end
  480.     @passage1 = Window_Base.new(0,0,544,56)
  481.     @passage1.opacity = 0
  482.     @passage2 = Window_Base.new(0,24,544,56)
  483.     @passage2.opacity = 0
  484.     @passage3 = Window_Base.new(0,48,544,56)
  485.     @passage3.opacity = 0
  486.     @passage4 = Window_Base.new(0,72,544,56)
  487.     @passage4.opacity = 0
  488.     @passage1.draw_action_text(@text1)
  489.     @passage2.draw_action_text(@text2)
  490.     @passage3.draw_action_text(@text3)
  491.     @passage4.draw_action_text(@text4)
  492.    
  493.   end
  494.   
  495.   def pre_terminate #结束前处理   
  496. #~     Graphics.fadeout(20)
  497.     $game_variables[11] = @player_x
  498.     $game_variables[12] = @player_y
  499.     $game_variables[13] = @player_velocity_x
  500.     $game_variables[14] = @player_velocity_y
  501.     $game_variables[21] = @text1
  502.     $game_variables[22] = @text2
  503.     $game_variables[23] = @text3
  504.     $game_variables[24] = @text4   
  505.     @passage1.z = -1 unless @passage1.disposed?
  506.     @passage2.z = -1 unless @passage2.disposed?
  507.     @passage3.z = -1 unless @passage3.disposed?
  508.     @passage4.z = -1 unless @passage4.disposed?
  509.     @viewport5.z = -4
  510.     @viewport10.z = -3
  511.     @viewport13.z = -2
  512.     @viewport15.z = -1
  513. #~     @viewport5.dispose
  514. #~     @viewport10.dispose
  515. #~     @viewport13.dispose
  516. #~     @viewport15.dispose
  517. #~     @viewport20.dispose
  518. #~     @passage1.dispose unless @passage1.disposed?
  519. #~     @passage2.dispose unless @passage2.disposed?
  520. #~     @passage3.dispose unless @passage3.disposed?
  521. #~     @passage4.dispose unless @passage4.disposed?
  522.   end
  523. end
复制代码

公共事件的内容.PNG (28.3 KB, 下载次数: 12)

公共事件的内容.PNG

点评

发代码记得用代码框哦,发帖的时候有一个"<>"形状的按钮,这次先替你编辑了.  发表于 2011-8-28 13:19

评分

参与人数 1星屑 +1332 收起 理由
fux2 + 1332 十分有趣

查看全部评分

Lv5.捕梦者 (管理员)

老黄鸡

梦石
0
星屑
41121
在线时间
7568 小时
注册时间
2009-7-6
帖子
13498

开拓者贵宾

2
发表于 2011-8-28 17:23:02 | 只看该作者
这个必须顶,很有启发性.
RGDirect - DirectX驱动的RGSS,点我了解.
RM全系列成套系统定制请联系QQ1213237796
不接受对其他插件维护的委托
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
45
在线时间
282 小时
注册时间
2012-2-18
帖子
161
3
发表于 2012-5-29 22:26:41 | 只看该作者
横版动作类有没有xp版本的?
真实的我不是这样子的~@
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-9-27 20:28

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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