this is a bit of code i finally came up with to make a chat routine in DBC
it allows you to type and the game still updates and runs
the coordinates for the chat are based on 800x600 screen and are on the bottom of the screen
i have tried for/next loops to just eliminate the repeating of the two areas but it just doesnt work
+ Code Snippetsync on
sync rate 30
set dislpay mode 800,600,32
dim chat$(5)
DO
rem chat routine
if returnkey()=1
if line$="" then goto skip
chat$(5)=chat$(4)
chat$(4)=chat$(3)
chat$(3)=chat$(2)
chat$(2)=chat$(1)
chat$(1)=line$
line$=""
goto skip
endif
new$=entry$()
for n=1 to len(new$)
if asc(mid$(new$,n))=8
line$=left$(line$,len(line$)-1)
else
line$=line$+mid$(new$,n)
endif
next n
skip:
clear entry buffer
text 0,584-75,chat$(5)
text 0,584-60,chat$(4)
text 0,584-45,chat$(3)
text 0,584-30,chat$(2)
text 0,584-15,chat$(1)
text 0,584,line$
loop