Funnel7, I am having a couple of issues. I have setup a editbox and am hiding it just out of screen (although I have tried hiding it under the adverts also). I then am using standard text to display the actual name text as you type. This works fine on PC either way.
On android it is not being consistent. Sometimes you can see your text and no sign of the edit box. You can enter your name okay, but when hitting return it just sits there until you click the screen, and unfocuses the editbox.
Other times you can see the edit box as it seems to position it incorrectly. When that happens it works okay. So it seems that if you have the box onscreen it will work, but hidden, doesn't register. I suppose I can just use the editbox as is, but I thought it looked better sticking to the text style of the game and avoiding the box altogether.
I am using the default keyboard on my HTC, as far as I am aware lol.
Here is the test program I am trying it is pretty much the same code in the game. My android does not continue on after you enter.
rem
rem AGK Application
rem
setvirtualresolution(640,480)
name$=gamename$
count=0
CreateEditBox( 1 )
SetEditBoxSize( 1, 1, 1 )
SetEditBoxTextSize( 1, 1 )
seteditboxtext(1,gamename$)
SetEditBoxFocus( 1,1 )
seteditboxactive(1,1)
SetEditBoxPosition( 1,(getvirtualwidth()*.5)-125,getvirtualheight()*1.25 )
fixeditboxtoscreen(1,1)
SetEditBoxMaxChars( 1, 12 )
dummy=5000
createtext(dummy,gamename$)
settextalignment(dummy,1)
settextposition(dummy,getvirtualwidth()*.5,getvirtualheight()*.15)
settextsize(dummy,50)
fixtexttoscreen(dummy,1)
enterscore=5001
createtext(enterscore,"Congratulations! You got a High Score.")
settextalignment(enterscore,1)
settextposition(enterscore,getvirtualwidth()*.5,getvirtualheight()*.05)
settextsize(enterscore,50)
fixtexttoscreen(enterscore,1)
enterscore2=5002
createtext(enterscore2,"Enter your name.")
settextalignment(enterscore2,1)
settextposition(enterscore2,getvirtualwidth()*.5,getvirtualheight()*.1)
settextsize(enterscore2,50)
fixtexttoscreen(enterscore2,1)
do
if GetEditBoxChanged(1)=1
name$=GetEditBoxText( 1 )
gamename$=name$
deleteeditbox(1)
deletetext(dummy)
deletetext(enterscore)
deletetext(enterscore2)
hscore=score
exit
endif
settextstring(dummy,geteditboxtext(1))
Sync()
loop
do
sync()
loop
