xboxscene.org forums

Author Topic: Input Nowait  (Read 92 times)

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Input Nowait
« on: December 02, 2003, 02:15:00 PM »

I tried making a small script that uses input nowait, but I can't get it to work like I want it to.

How exatly does input nowait work?

This is my script:
CODE

SET YY 100
SET XX 100
SET Y1 0
SET X1 0


INPUT
GOTO BLAH

:Blah

If %_GP_D_LF% == "1" GOTO LF
If %_GP_D_UP% == "1" GOTO UP
If %_GP_D_DN% == "1" GOTO DN
If %_GP_D_RT% == "1" GOTO RT
If %_GP_A% == "1" GOTO EXIT

GOTO DRAWIT

:DN
SET Y1 1
GOTO DRAWIT
:LF
SET X1 -1
GOTO DRAWIT
:RT
SET X1 1
GOTO DRAWIT
:UP
SET Y1 -1
GOTO DRAWIT

:DRAWIT
ADD XX %X1%
ADD YY %Y1%

BEGINDRAW
BOX %XX% %YY% 10 10 Black White
ENDDRAW

INPUT NOWAIT

GOTO BLAH

:EXIT
QUIT
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Input Nowait
« Reply #1 on: December 02, 2003, 02:24:00 PM »

It should work, but the input is sometimes a bit belligerent.

That's another reason I'm working on revamping the input.
Logged