I wouldnt think that would even compile... unless your using a different ide that uses backslash as a reserved symbol - such as for comments.
Anyway, try removing the backslashes.
Try this:
If Object collision(1,101)>0 : rem If the character (Object 1) hits Object 101
play sound 101
exclude object on 101
PRINT "Type Your Name";name$
INPUT "enter name:";name$
WAIT KEY
endIf
There are a few programming style errors, but lets deal with the original problem of printing not working.
So now we have removed the backslashes, you should find that it prints the text, but it only appears on the screen for a fraction of a second. To print the text to the screen like you would normally in a 2D environment, turn the backdrop off and on again before and after your printing.
Like this:
If Object collision(1,101)>0 : rem If the character (Object 1) hits Object 101
play sound 101
exclude object on 101
backdrop off
PRINT "Type Your Name";name$
INPUT "enter name:";name$
WAIT KEY
backdrop on
endIf
and here is just a short bit of code I whipped up that shows it working. (the box to collide with is right in front of you, so just push up to move to it)
(plus has a couple of style corrections)
` make objects
make object cube 1,10
color object 1,rgb(255,0,0)
make object cube 101,20
position object 101,0,0,50
sync on
sync rate 60
` game loop
do
` controls
if upkey()=1 then move object 1,1
if downkey()=1 then move object 1,-1
if leftkey()=1 then turn object left 1,3
if rightkey()=1 then turn object right 1,3
` YOUR CODE WITH SLIGHT CHANGES
If Object collision(1,101)>0 : rem If the character (Object 1) hits Object 101
`play sound 101 <-- I commented this out because I did not have a sound file to play
exclude object on 101
backdrop off
INPUT "Type Your Name:";name$
backdrop on
endIf
sync
loop
No signature found...