so I am trying to get the user to input text which then converts to integers and stored in variables. then using these numbers to resize an image. I bet it is something really simple but it is thus far eluding me. any help appreciated. here is the section I am having trouble with thanks.
Have tried a couple of different ways this is my current attempt.
if GetVirtualButtonExists(3)
if GetVirtualButtonPressed(3) then setx=1
endif
if setx=1
StartTextInput()
if GetTextInputCompleted()=1
StopTextInput()
sizex=Val(GetTextInput())
setx=2
endif
endif
if setx=2 and sety=0
StartTextInput()
if GetTextInputCompleted()=1
StopTextInput()
sizey=Val(GetTextInput())
sety=1
endif
endif
if setx=2 and sety=1
ResizeImage(image,sizex,sizey)
SaveImage(image,str(sizex))
endif