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

Project1

 找回密码
 注册会员
搜索
楼主: 神思
打印 上一主题 下一主题

新的死法.......- -`|||(更新了一个分成2半的东西``)

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
1 小时
注册时间
2008-1-22
帖子
95
51
发表于 2008-2-27 03:31:55 | 只看该作者
楼主 是把module RPG
  class Sprite < ::Sprite   
    def initialize(viewport = nil)
      super(viewport)
      @_whiten_duration = 0
      @_appear_duration = 0
      @_escape_duration = 0
      @_collapse_duration = 0
      @_damage_duration = 0
      @_animation_duration = 0
      @_blink = false
      @coll_time = 0
    end
    def collapse
      @coll.dispose if @coll != nil
      @coll = Sprite.new
      @coll.bitmap = Bitmap.new("Graphics/Battlers/#{@battler_name}")
      @coll.ox = self.ox
      @coll.oy = self.oy
      @coll.opacity = 100
      @coll.z = 0
      @coll.blend_type = 1
      @coll.x = self.x
      @coll.y = self.y
      @coll_time = 42
      @_whiten_duration = 0
      @_appear_duration = 0
      @_escape_duration = 0
    end
  def update
      super
      if @_whiten_duration > 0
        @_whiten_duration -= 1
        self.color.alpha = 128 - (16 - @_whiten_duration) * 10
      end
      if @_appear_duration > 0
        @_appear_duration -= 1
        self.opacity = (16 - @_appear_duration) * 16
      end
      if @_escape_duration > 0
        @_escape_duration -= 1
        self.opacity = 256 - (32 - @_escape_duration) * 10
      end
      if @coll_time > 0
        @coll_time -= 1
        @coll.y = self.y - (48 - @coll_time) * 6
        self.opacity = 256 - (48 - @coll_time) * 6
        if @coll_time == 0
          @coll.dispose
        end
      end
      if @_damage_duration > 0
        @_damage_duration -= 1
        case @_damage_duration
        when 38..39
          @_damage_sprite.y -= 2
        when 36..37
          @_damage_sprite.y -= 4
        when 34..35
          @_damage_sprite.y -= 2
        when 28..33
          @_damage_sprite.y -= 4
        end
        @_damage_sprite.opacity = 256 - (12 - @_damage_duration) * 32
        if @_damage_duration == 0
          dispose_damage
        end
      end
      if @_animation != nil and (Graphics.frame_count % 2 == 0)
        @_animation_duration -= 1
        update_animation
      end
      if @_loop_animation != nil and (Graphics.frame_count % 2 == 0)
        update_loop_animation
        @_loop_animation_index += 1
        @_loop_animation_index %= @_loop_animation.frame_max
      end
      if @_blink
        @_blink_count = (@_blink_count + 1) % 32
        if @_blink_count < 16
          alpha = (16 - @_blink_count) * 6
        else
          alpha = (@_blink_count - 16) * 6
        end
        self.color.set(255, 255, 255, alpha)
      end
      @@_animations.clear
    end
  end
end
这些东西复制在Main前面吗?还是需要在某个脚本里用这些东西更换其它的东西?
其它知道的朋友也告诉我一下谢谢
http://rpg.blue/upload_program/files/RTP%20(6)_98985006.png
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2006-7-1
帖子
848
52
发表于 2008-2-27 18:21:12 | 只看该作者
以下引用柳柳于2006-11-11 3:34:38的发言:

再做两个吧:
一个是横腰斩断成俩bitmap
一个是变成很多小方块飞散


Rckmanzero里若敌人被枪击死是前者,敌人被剑腰斩就是后者。

神思啊...一提起你我就想到了长门有希...
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

劒剋

梦石
0
星屑
50
在线时间
27 小时
注册时间
2007-12-16
帖子
1304
53
发表于 2008-2-27 20:53:40 | 只看该作者
像天之痕那样……炸开!
Shining...
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
87 小时
注册时间
2006-1-3
帖子
227
54
发表于 2008-2-28 07:40:03 | 只看该作者
可以做成多桢动画了吧。。。如果能做成梦幻和魔力那样子飞出屏幕外那种效果就好玩了{/tx}
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-5-7 09:23

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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