Vai al contenuto


Toggle Chat RM - Chat Apri la Chat in un popup

E' severamente vietato richiedere supporto su RPG Maker in chat!
@  MihaChan : (23 May 2012 - 09:19 PM) a parte i denti -che stanno decidendo di darmi noia in questi giorni-, tutto okay~
@  Melosx : (23 May 2012 - 09:18 PM) bene ^.^ ... Tu??
@  MihaChan : (23 May 2012 - 09:17 PM) come va? xD
@  MihaChan : (23 May 2012 - 09:16 PM) okay
@  MihaChan : (23 May 2012 - 09:16 PM) ah
@  Melosx : (23 May 2012 - 09:14 PM) ciao miha... ai dont spic inglisc
@  MihaChan : (23 May 2012 - 09:12 PM) how'sa goin'?
@  MihaChan : (23 May 2012 - 09:12 PM) ciao Mel!
@  Melosx : (23 May 2012 - 09:07 PM) ciao
@  MihaChan : (23 May 2012 - 09:06 PM) salve D:
@  Pech93 : (23 May 2012 - 08:05 PM) MIk?
@  Melosx : (23 May 2012 - 07:51 PM) VIENI SU MSN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@  Melosx : (23 May 2012 - 07:51 PM) MIIIIIIIIIIIIIIIIIIIKKKKKKKKKKKK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@  Melosx : (23 May 2012 - 07:46 PM) *iù
@  Melosx : (23 May 2012 - 07:38 PM) iu spin mi rai rau bebi rai rau laic a record bebi rau rau rau rau
@  Melosx : (23 May 2012 - 07:37 PM) lalalallalallalallallllllllllalalalallaaaaaaaaaaaaaaaaaaaaaa!!!!!!!!!!!!!!!!!!
@  Melosx : (23 May 2012 - 07:37 PM) lalalalala
@  Melosx : (23 May 2012 - 07:37 PM) naoinvaoèvpodlnvvrovnovnondpppppppppmvdgdvjomvmvpe
@  Melosx : (23 May 2012 - 07:36 PM) che coa che robaé
@  Abadon : (23 May 2012 - 07:34 PM) dopo che il forum è andato fuori servizio si è persa un po' la chat D:

napco's Side View BS


  • Per cortesia connettiti per rispondere
Nessuna risposta a questa discussione

#1 OFFLINE   napco

napco

    Maker Viandante

  • Utenti RM
  • 205 Messaggi:
  • LocalitàMarte
  • Tool:
    C(++)ervello

Inviato 15 June 2010 - 12:15 PM

Vi presento il mio primissimo script! Ci ho lavorato su davvero poco, però prevedo di migliorarlo e terminarlo (magari ci farò pure un gioco).

Nome Script: napco's Side View BS
Versione: 0.1
Autore/i: napco

Informazioni:
Lo script è ancora nelle sue fasi iniziali. Si tratta di un plugin al sistema di combattimento che dovrebbe trasformarlo in battaglie laterali. Purtroppo i membri del gruppo sono statici (mancano di animazioni), ma risolverò al più presto.

Screenshots:
Spoiler

Istruzioni:
Inserite lo script sotto "materials".

Script:
module Cache
  def self.character(filename, hue = 0)
    load_bitmap("Graphics/Characters/", filename, hue)
  end
end

class Game_Actor < Game_Battler  
  def use_sprite?
    return true
  end

  def screen_x
    return 512 - ($game_party.members.size - self.index) * 16
  end

  def screen_y
    return 160 + self.index * 32
  end

  def screen_z
    return 100
  end
end

class Sprite_Battler < Sprite_Base
  def update_battler_bitmap
    if @battler.actor?
      update_actor_bitmap
    else
      update_enemy_bitmap
    end
  end

  def update_actor_bitmap
    if @battler.character_name != @battler_name or
       @battler.battler_hue != @battler_hue
      @battler_name = @battler.character_name
      @battler_hue = @battler.battler_hue
      self.bitmap = Cache.character(@battler_name, @battler_hue)
      sign = @battler_name[/^[!$]./]
      if sign != nil and sign.include?('$')
        @width = bitmap.width / 3
        @height = bitmap.height / 4
      else
        @width = bitmap.width / 12
        @height = bitmap.height / 8
      end
      self.ox = @width / 2
      self.oy = @height
      index = @battler.character_index
      pattern = 1
      sx = (index % 4 * 3 + pattern) * @width
      sy = (index / 4 * 4 + (4 - 2) / 2) * @height
      self.src_rect.set(sx, sy, @width, @height)
      if @battler.dead? or @battler.hidden
        self.opacity = 0
      end
    end
  end

  def update_enemy_bitmap
    if @battler.battler_name != @battler_name or
       @battler.battler_hue != @battler_hue
      @battler_name = @battler.battler_name
      @battler_hue = @battler.battler_hue
      self.bitmap = Cache.battler(@battler_name, @battler_hue)
      @width = bitmap.width
      @height = bitmap.height
      self.ox = @width / 2
      self.oy = @height
      if @battler.dead? or @battler.hidden
        self.opacity = 0
      end
    end
  end
end

class Spriteset_Battle
  def create_battleback
    source = $game_temp.background_bitmap
    bitmap = Bitmap.new(640, 480)
    bitmap.stretch_blt(bitmap.rect, source, source.rect)
    bitmap.radial_blur(90, 12)
    @battleback_sprite = Sprite.new(@viewport1)
    @battleback_sprite.bitmap = bitmap
    @battleback_sprite.ox = 320
    @battleback_sprite.oy = 240
    @battleback_sprite.x = 272
    @battleback_sprite.y = 176
    @battleback_sprite.wave_amp = 8
    @battleback_sprite.wave_length = 240
    @battleback_sprite.wave_speed = 120
  end

  def create_battlefloor
    @battlefloor_sprite = Sprite.new(@viewport1)
    @battlefloor_sprite.bitmap = Cache.system("BattleFloor")
    @battlefloor_sprite.x = -136
    @battlefloor_sprite.y = 48
    @battlefloor_sprite.z = 1
    @battlefloor_sprite.zoom_x = 1.5
    @battlefloor_sprite.zoom_y = 2.0
    @battlefloor_sprite.opacity = 128
  end
end

Incompatibilità:
Presumo che lo script sia incompatibile con altri Side View Battle scripts.
Podi raggiunti
Spoiler




1 utente(i) stanno leggendo questa discussione

0 utenti, 1 ospiti, 0 utenti anonimi