collapse collapse

 Community


 User Info




Willkommen Gast. Bitte einloggen oder registrieren.

 Partnerseiten

rpgvx.net

Das Forum ist offline

Autor Thema: brauche hilfe zu nem script :) (per WASD steuern, funzt nich ganz)  (Gelesen 1319 mal)

Offline Evil95

  • Aktuelles Projekt: Demon - Beginning of Chaos VX
  • Mr. MACK-Tile
  • ***
  • Beiträge: 289
    • http://demonvx-online.de.vu
moin vx-fangemeinde.
ick habe dieses kleien script zusammen gebaut bekommen:
Spoiler for Hiden:
class Window_Selectable < Window_Base
  def update
    super
    if cursor_movable?
      last_index = @index
      if $api.an?("s")
        cursor_down($api.an?("w"))
      end
      if $api.an?("w")
        cursor_up($api.an?("w"))
      end
      if $api.an?("d")
        cursor_right($api.an?("d"))
      end
      if $api.an?("a")
        cursor_left($api.an?("a"))
      end
      if Input.repeat?(Input::R)
        cursor_pagedown
      end
      if Input.repeat?(Input::L)
        cursor_pageup
      end
      if @index != last_index
        Sound.play_cursor
      end
    end
    update_cursor
    call_update_help
  end
end
mti diesem Script kann man das Menü per WASD steuern. nur mein problem ist, dass wenn ich nach unten drücke es so schnell geht, dass der cursor gleich am anderen ende ankommt.
nun wollte ich fragen ob es möglich ist mit einem Wait, dies zu unterbinden? Ich wollte das Testen aber wenn ich
Wait (60)unter
if $api.an?("s")
        cursor_down($api.an?("w"))
setze, bekomme ich nur eine Fehlermeldung. Was mache ich falsch?
(Ich nutze dies in verbindung mit Miikkus Tastenscript.)
« Letzte Änderung: Juli 25, 2008, 20:26:20 von Evil95 »

 


 Bild des Monats

rooftop party

Views: 4361
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