加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 金芒芒 于 2023-6-9 16:57 编辑
不要跟着角色走,如何用固定显示坐标 比如sprite.x =60 sprite.y =420
sprite.x = @character.screen_x
sprite.y = shif ? @character.screen_y-92 : @character.screen_y-60
alias hzhj_old_update_make_tag update def update hzhj_old_update_make_tag if !@character.is_a?(EFS_Battler) and !@character.is_a?(Game_Player) @tags_sprites.each{|sprite|sprite.visible = false} else if show_team_flag? @team_flag_sprite.visible = true else @team_flag_sprite.visible = false end # 刷新 标记 可见状态 if show_team_tag? @team_tag_sprite.visible = true if @selected @tags_sprites.each do |sprite| sprite.ox = sprite.bitmap.width / 2 sprite.oy = sprite.bitmap.height sprite.z = z sprite.x = @character.screen_x #blink_on shif = @character.is_cal if @character.ammo>0 sprite.y = shif ? @character.screen_y-92 : @character.screen_y-60 else sprite.y = shif ? @character.screen_y-82 : @character.screen_y-50 end sprite.opacity = 255 end#loop else # 刷新坐标 @tags_sprites.each do |sprite| #sprite.zoom_y = 1 sprite.ox = sprite.bitmap.width / 2 sprite.oy = sprite.bitmap.height sprite.z = z sprite.x = @character.screen_x #blink_on shif = @character.is_cal if @character.ammo>0 sprite.y = shif ? @character.screen_y-92 : @character.screen_y-60 else sprite.y = shif ? @character.screen_y-82 : @character.screen_y-50 end sprite.opacity = 125 end#loop end #if include else @tags_sprites.each{|sprite|sprite.visible = false} end end end end
alias hzhj_old_update_make_tag update
def update
hzhj_old_update_make_tag
if !@character.is_a?(EFS_Battler) and !@character.is_a?(Game_Player)
@tags_sprites.each{|sprite|sprite.visible = false}
else
if show_team_flag?
@team_flag_sprite.visible = true
else
@team_flag_sprite.visible = false
end
# 刷新 标记 可见状态
if show_team_tag?
@team_tag_sprite.visible = true
if @selected
@tags_sprites.each do |sprite|
sprite.ox = sprite.bitmap.width / 2
sprite.oy = sprite.bitmap.height
sprite.z = z
sprite.x = @character.screen_x
#blink_on
shif = @character.is_cal
if @character.ammo>0
sprite.y = shif ? @character.screen_y-92 : @character.screen_y-60
else
sprite.y = shif ? @character.screen_y-82 : @character.screen_y-50
end
sprite.opacity = 255
end#loop
else
# 刷新坐标
@tags_sprites.each do |sprite|
#sprite.zoom_y = 1
sprite.ox = sprite.bitmap.width / 2
sprite.oy = sprite.bitmap.height
sprite.z = z
sprite.x = @character.screen_x
#blink_on
shif = @character.is_cal
if @character.ammo>0
sprite.y = shif ? @character.screen_y-92 : @character.screen_y-60
else
sprite.y = shif ? @character.screen_y-82 : @character.screen_y-50
end
sprite.opacity = 125
end#loop
end #if include
else
@tags_sprites.each{|sprite|sprite.visible = false}
end
end
end
end
|