This site requires JavaScript, please enable it in your browser!
Greenfoot back
FarEalm
FarEalm wrote ...

2018/4/12

Having issues using something similar to a scanner

FarEalm FarEalm

2018/4/12

#
Hi i am kinda new to greenfoot, i have seen other discussions on things that involve user input but i still am having troubles with it. I am trying to make a text box like object that you can enter in numbers using Greenfoot.isKeyDown and it stores the numbers as a variable kinda like a calculator does where as you enter the numbers it moves the numbers over. I also would like it to print to the screen as you input the numbers. That is the problem i am having is the adding the numbers to the screen. If someone could help me that would be great. Thank you for your time
danpost danpost

2018/4/12

#
What have you tried? What code do you have for your text box? and what code do you have for entering in the numbers? and which part are you currently having issues with? is it the "right-adjusting" of the numbers put to the screen? or something else? You mention a text box (which is a visual object on the screen) and printing to the screen. Would they both be the same "printing to the screen"?
You need to login to post a reply.