collapse collapse

 Community


 User Info




Willkommen Gast. Bitte einloggen oder registrieren.

 Partnerseiten

rpgvx.net

Das Forum ist offline

Autor Thema: [VX Snippet] Animation Bug Fixed  (Gelesen 1711 mal)

woratana

  • Gast
[VX Snippet] Animation Bug Fixed
« am: Mai 22, 2008, 07:06:32 »
Animation Bug Fixed
by Woratana
Release Date: 21/05/2008


Introduction
I'm not sure how many people noticed that...

when you show animation on character,
and you move in the map that bigger than 17 x 13 which cause map to scroll.
The animation will move with the screen, instead of stay on character.

So I scripted this one to fixed it~


Screenshots
No need...


Script
Place it above main

[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']#=========================================================================
# ? ? [VX] Animation Bug Fixed ? ? by Woratana (21/05/2008)
# * Fixed bug that animation will follow screen, not stay on character~ *
# * You can place this script in any slot below the slot 'Sprite_Base'
#-------------------------------------------------------------------------
class Sprite_Base < Sprite
  alias wora_bugfix_sprbas_upd update
  def update
    if !@animation.nil?
      if @animation.position == 3
        if viewport == nil
          @animation_ox = Graphics.width / 2
          @animation_oy = Graphics.height / 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
    end
    wora_bugfix_sprbas_upd
  end
end


Instruction
You can place this script in any slot below the slot 'Sprite_Base'  ;)


Author's Notes
Free for use in your work~

[VX Snippet] Animation Bug Fixed

ERZENGEL

  • Gast
[VX Snippet] Animation Bug Fixed
« Antwort #1 am: Mai 22, 2008, 09:25:36 »
Another bug :lol:Now I'm going to add this to the fixed Scripts.rvdata (see faq). And good work ;)
« Letzte Änderung: Mai 22, 2008, 10:24:49 von ERZENGEL »

[VX Snippet] Animation Bug Fixed

woratana

  • Gast
[VX Snippet] Animation Bug Fixed
« Antwort #2 am: Mai 22, 2008, 10:26:54 »
Thanks :)Erzengel.

I'm glad you see this useful :)

[VX Snippet] Animation Bug Fixed

Dainreth

  • Gast
[VX Snippet] Animation Bug Fixed
« Antwort #3 am: Mai 22, 2008, 12:37:08 »
I never noticed that bug 'cause I only use 17x13 maps. But good to know there's a bug like this, thanks!

[VX Snippet] Animation Bug Fixed

Offline Evil95

  • Aktuelles Projekt: Demon - Beginning of Chaos VX
  • Mr. MACK-Tile
  • ***
  • Beiträge: 289
    • http://demonvx-online.de.vu
[VX Snippet] Animation Bug Fixed
« Antwort #4 am: Mai 23, 2008, 16:51:47 »
was macht diese script?

[VX Snippet] Animation Bug Fixed

Offline Claine

  • Makerer aus Zeitvertreib
  • Eventmeister
  • ***
  • Beiträge: 422
  • Digimon-Fan
    • Digimon New Generation FRPG
[VX Snippet] Animation Bug Fixed
« Antwort #5 am: Mai 23, 2008, 17:30:00 »
Der Script bewirkt, soweit ich das verstanden hab (bin kein Perfektes Ass in Englisch ^^'), behebt das Script den Bug, das, wenn man eine größere Map als 17x13 macht, die Animationen auf einen Caracter immer auch drauf bleiben, da die sich verschieben, wenn man läuft, während die Animation abgespielt wird, z.B. bei Schlachtsequenzen, wo man sich frei bewegt.

@Topic:

Hm... I don't know who I uses this script. Well, we see it ^^. Sorry for my bad English, but i can not good translate Germany-> English. But good English-> Germany ^^'. Good Work, Wora! ^^

MFG
Claine

 


 Bild des Monats

rooftop party

Views: 3585
By: papilion

 Umfrage

  • Wer soll das BdM gewinnen?
  • Dot Kandidat 1
  • 3 (25%)
  • Dot Kandidat 2
  • 1 (8%)
  • Dot Kandidat 3
  • 2 (16%)
  • Dot Kandidat 4
  • 0 (0%)
  • Dot Kandidat 5
  • 6 (50%)
  • Stimmen insgesamt: 12
  • View Topic

 Schnellsuche





SimplePortal 2.3.3 © 2008-2010, SimplePortal