I am trying to make a game that recognizes a personal name that you tell the game. i figure i would need to use a variable. well anyway here's my code. When i run it it works, but it says name$ instead of saying what i type the person types. How can I make it so that it says what u type in
--answer for DB Classic
sync on
load image "menu.bmp",1
load image "grass.jpg",2
load image "water.bmp",3
sprite 1,0,0,1
do
if mousex()>27 and mousex()<161 and mousey()>31 and mousey()<101 and mouseclick()=1
hide mouse
delete sprite 1
print "What Is Your Name Stranger?"
input name$
wait key
print "Hello name$, let me load you a new game, ok?"
wait key
sprite 3,0,0,2
sprite 4,0,0,3
endif
sync
loop
Horus Game Developments
freewebs.com/horusgames