Jump to content
Rpg²S Forum

teddy

Utenti
  • Posts

    89
  • Joined

  • Last visited

Posts posted by teddy

  1. guarda

    secondo me piu che cosi perche non fai una cosa tipo pokemon per N64(mi sfugge il nome)

    cioè si carica il salvataggio dell'amico e ci si sfda

  2. carino come progetto anche io avevo iniziato qualcosa del genere

    i mostri assomigliano molto a un pokemon di cui ora mi sfugge il nome

    se migliori la schermata di sotto il bs è carino veramente

    comunque se ti serve una mano per la programmazione di script vari e eventi fammi un fischio

  3. Dunque ecco il mio

    il gioco è naturalmente Great Big Match

    http://img59.imageshack.us/img59/9656/open0.jpg

    La scena è una battaglia

    per gli elementi

    i charset sono si rippati ma anche leggermente editati

    i tileset invece è stato editato pesantemente

    la nebbia è RTP

    mentre la lifebar è fatta da 0 da me

    la scritta VS lampeggia

  4. si quella piu che una demo è il motore di gioco del bs

    la prossima relase sara una vera e propria demo che è totalmente diversa da questa che ho postato

    ci sara la descrizione dei tasti

    per i pg voglio mantenerli fedeli al gioco da cui ho rippato

    per il secondo piano lo sto cercando di sviluppare da qundo ho aperto il progetto

    nella versione finale ci sara sicuramente

    pultroppo sviluppare un motore di fisica decente non è facilissimo

  5. per la prima richiesta

    è un modo un po cosi ma funziona

    nello scene map crei

    una variabile che imposti su true nel main

    una variabile @clock che imposti a 0

    due def

    nella prima metti una if con input e elenchi tutti i tasti che si useranno nel tuo gioco con or

    quindi dentro la if la variabile diventa false

    nellas seconda def

    @clock +=1

    crei un if se variabile è true

    dentro ci metti un'altra if clock > numero frame prima dell'animazione

    e cambi immagine al pg

    end

    if clock > metti piu 10 al numero d prima

    @clock=0

    end

    else(della prima if)

    (lascia vuoto)

    end

    in questo modo se nn premi nessun tasto dopo tot frame ti fa l'animazione

  6. dunque

    finalmente ci sono riuscito

    spiego cosi questo topic puo tornare utile

    il game system ho usato quello postato

    poi in una scena che ho chiamato opzioni

    ho creato uan def di nome audio e una variabile games_switches(diciamo la 1)

    nella def se game variables 1è on

    $game_system.mee=0 else $game_system.mee=100

    e poi ho creato una window command con

    when 1

    audio.bgm_stop

    game_switches 1 on

     

    in questo modo rimane memorizzato se il volume è 0 o no e quando si cambia scena o mappa il volume non cambia

    fino a che non si cambia la switch

  7. si non fa niente le faccio partire tutte allo stesso volume

    comunque

    io modifico la game system cosi

    #==============================================================================# ** Game_System#------------------------------------------------------------------------------#  This class handles data surrounding the system. Backround music, etc.#  is managed here as well. Refer to "$game_system" for the instance of #  this class.#============================================================================== class Game_System  #--------------------------------------------------------------------------  # * Public Instance Variables  #--------------------------------------------------------------------------  attr_reader   :map_interpreter		  # map event interpreter  attr_reader   :battle_interpreter	   # battle event interpreter  attr_accessor :timer					# timer  attr_accessor :timer_working			# timer working flag  attr_accessor :save_disabled			# save forbidden  attr_accessor :menu_disabled			# menu forbidden  attr_accessor :encounter_disabled	   # encounter forbidden  attr_accessor :message_position		 # text option: positioning  attr_accessor :message_frame			# text option: window frame  attr_accessor :save_count			   # save count  attr_accessor :magic_number			 # magic number attr_accessor :mee  #--------------------------------------------------------------------------  # * Object Initialization  #--------------------------------------------------------------------------  def initialize	@map_interpreter = Interpreter.new(0, true)	@battle_interpreter = Interpreter.new(0, false)	@timer = 0	@timer_working = false	@save_disabled = false	@menu_disabled = false	@encounter_disabled = false	@message_position = 2	@message_frame = 0	@save_count = 0	@magic_number = 0	@mee=100  end  #--------------------------------------------------------------------------  # * Play Background Music  #	 bgm : background music to be played  #--------------------------------------------------------------------------  def bgm_play(bgm)	@playing_bgm = bgm	if bgm != nil and bgm.name != ""	  Audio.bgm_play("Audio/BGM/" + bgm.name, @mee, bgm.pitch)	else	  Audio.bgm_stop	end	Graphics.frame_reset  end  #--------------------------------------------------------------------------  # * Stop Background Music  #--------------------------------------------------------------------------  def bgm_stop	Audio.bgm_stop  end  #--------------------------------------------------------------------------  # * Fade Out Background Music  #	 time : fade-out time (in seconds)  #--------------------------------------------------------------------------  def bgm_fade(time)	@playing_bgm = nil	Audio.bgm_fade(time * 1000)  end  #--------------------------------------------------------------------------  # * Background Music Memory  #--------------------------------------------------------------------------  def bgm_memorize	@memorized_bgm = @playing_bgm  end  #--------------------------------------------------------------------------  # * Restore Background Music  #--------------------------------------------------------------------------  def bgm_restore	bgm_play(@memorized_bgm)  end  #--------------------------------------------------------------------------  # * Play Background Sound  #	 bgs : background sound to be played  #--------------------------------------------------------------------------  def bgs_play(bgs)	@playing_bgs = bgs	if bgs != nil and bgs.name != ""	  Audio.bgs_play("Audio/BGS/" + bgs.name, bgs.volume, bgs.pitch)	else	  Audio.bgs_stop	end	Graphics.frame_reset  end  #--------------------------------------------------------------------------  # * Fade Out Background Sound  #	 time : fade-out time (in seconds)  #--------------------------------------------------------------------------  def bgs_fade(time)	@playing_bgs = nil	Audio.bgs_fade(time * 1000)  end  #--------------------------------------------------------------------------  # * Background Sound Memory  #--------------------------------------------------------------------------  def bgs_memorize	@memorized_bgs = @playing_bgs  end  #--------------------------------------------------------------------------  # * Restore Background Sound  #--------------------------------------------------------------------------  def bgs_restore	bgs_play(@memorized_bgs)  end  #--------------------------------------------------------------------------  # * Play Music Effect  #	 me : music effect to be played  #--------------------------------------------------------------------------  def me_play(me)	if me != nil and me.name != ""	  Audio.me_play("Audio/ME/" + me.name, me.volume, me.pitch)	else	  Audio.me_stop	end	Graphics.frame_reset  end  #--------------------------------------------------------------------------  # * Play Sound Effect  #	 se : sound effect to be played  #--------------------------------------------------------------------------  def se_play(se)	if se != nil and se.name != ""	  Audio.se_play("Audio/SE/" + se.name, se.volume, se.pitch)	end  end  #--------------------------------------------------------------------------  # * Stop Sound Effect  #--------------------------------------------------------------------------  def se_stop	Audio.se_stop  end  #--------------------------------------------------------------------------  # * Get Playing Background Music  #--------------------------------------------------------------------------  def playing_bgm	return @playing_bgm  end  #--------------------------------------------------------------------------  # * Get Playing Background Sound  #--------------------------------------------------------------------------  def playing_bgs	return @playing_bgs  end  #--------------------------------------------------------------------------  # * Get Windowskin File Name  #--------------------------------------------------------------------------  def windowskin_name	if @windowskin_name == nil	  return $data_system.windowskin_name	else	  return @windowskin_name	end  end  #--------------------------------------------------------------------------  # * Set Windowskin File Name  #	 windowskin_name : new windowskin file name  #--------------------------------------------------------------------------  def windowskin_name=(windowskin_name)	@windowskin_name = windowskin_name  end  #--------------------------------------------------------------------------  # * Get Battle Background Music  #--------------------------------------------------------------------------  def battle_bgm	if @battle_bgm == nil	  return $data_system.battle_bgm	else	  return @battle_bgm	end  end  #--------------------------------------------------------------------------  # * Set Battle Background Music  #	 battle_bgm : new battle background music  #--------------------------------------------------------------------------  def battle_bgm=(battle_bgm)	@battle_bgm = battle_bgm  end  #--------------------------------------------------------------------------  # * Get Background Music for Battle Ending  #--------------------------------------------------------------------------  def battle_end_me	if @battle_end_me == nil	  return $data_system.battle_end_me	else	  return @battle_end_me	end  end  #--------------------------------------------------------------------------  # * Set Background Music for Battle Ending  #	 battle_end_me : new battle ending background music  #--------------------------------------------------------------------------  def battle_end_me=(battle_end_me)	@battle_end_me = battle_end_me  end  #--------------------------------------------------------------------------  # * Frame Update  #--------------------------------------------------------------------------  def update	# reduce timer by 1	if @timer_working and @timer > 0	  @timer -= 1	end  endend

     

     

     

    poi in un'altra scena

    in una window command metto

    when1

    $game_system.mee=0

     

    e mi da errore di metodo

    perche?

  8. allora tutto quello che hai scritto tu è giustissimo(mah va)e anche io sapevo le stesse cose

    comunque non so per cosa riscrivendo il codice ora mi va perfettamente

    prima in @command_window.commands[0] = s1

    il valore tra parentesi era sfasato di uno

    ora va

    non so il perche

    ma questo è l'importante

    grazie per il tempo

  9. allora il fatto che era una forma contratta non lo sapevo

    pultroppo non conosco rgss bene come te...non c'era motivo di scardarsi infatti anche io mi chiedo perche

    una cosa cosi banale non funzioni

    comunque nel secondo metodo il numero tra parentesi continua a partire sempre da -1 e non da 0

    non è la fine del mondo

    ora riesco a fare lo stesso quello che volevo pero mi sarebbe piaciuto capire il perche d questa anomalia

  10. allora

    il ragionamento l'ho capito è semplice

    ho provato e...

    il primo metodo non ne vuole sapere di andare

    il secondo funziona in maniera strana

    il numero tra parentesi parte da -1 e non da 0

    e poi nell'istruzione

    s1 = $game_switches[1] ? "Audio ON" : "Audio OFF"

    il primo termine tra "" è quello che diventa non quello che cambia

    mentre il secondo termine non serve a niente infatti mettendo solo "" cambia lo stesso

    mah

    pero gia un piccolo passo l'ho fatto

  11. si hai ragione

    per scrivere di corsa ho ragionato poco

    in realta @variabile è una game switch

    quindi anche abbandonando la scena rimane memorizzata

    comunque

    non sono riuscito a capire le due spiegazioni, se puoi spiegarti meglio per favore

    ah ho dimenticato di dire che in questa window command i comandi che cambiano sono piu di uno contemporaneamente

    per es

    s1 = audio on - audio off

    s2= corsa on - corsa off

    s3= esci

    quindi ci sarebbero varie combinazioni

×
×
  • Create New...