Cerca nel Forum
Showing results for tags 'Fix Animazioni'.
Trovato 1 risultato
-
Nome Script: Fix Animazioni Versione: 1.0 Autore/i: FenixFyreX Informazioni: Se prima le animazioni su mappa venivano create in un punto preciso della mappa attraverso @animation_ox e @animation_oy, con questo script si aggiornano le variabili per poter muovere le animazioni. Istruzioni: Lo script deve stare sopra Main, ma SOTTO TUTTI gli altri Script che avete nel progetto. Script: class Sprite_Base alias update_animation_oxy update_animation unless $@ def update_animation(*args,&block) if @animation.position == 3 if viewport == nil @animation_ox = 544 / 2 @animation_oy = 416 / 2 else @animation_ox = viewport.rect.width / 2 @animation_oy = viewport.rect.height / 2 end else @animation_ox = x - ox + width / 2 @animation_oy = y - oy + height / 2 if @animation.position == 0 @animation_oy -= height / 2 elsif @animation.position == 2 @animation_oy += height / 2 end end update_animation_oxy(*args,&block) end end