Pokemon name making
Author |
Message |
DeoChomp
|
Posted: Tue Nov 08, 2016 11:13 am Post subject: Pokemon name making |
|
|
What is it you are trying to achieve?
I'm trying to have the player make a name at the start of a game the way pokemon does
What is the problem you are having?
After I press on the "a" that is on the screen, it appears, but if I press it again, the first one disappears and a second one appears next to where the first one if
Describe what you have tried to solve this problem
making an array of Boolean so that if the variable is "a" the array variable is true and if it's true, I have it put "a" where the first one is
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
<Answer Here>
Turing: |
<Add your code here>
|
Please specify what version of Turing you are using
4.1.1
Description: |
|
Download |
Filename: |
Name Making.t |
Filesize: |
3.46 KB |
Downloaded: |
178 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
lordroba
|
Posted: Tue Nov 08, 2016 1:06 pm Post subject: Re: Pokemon name making |
|
|
Try it with this code. Essentially just adding the 'a' to the name and keeping a running total of all the letters.
Turing: |
.. ..
if chars (KEY_ENTER ) and x > - 1 and x < 20 and qw > maxy - 170 then
gloob := gloob + "a"
tu := tu + 1
end if
locate (1, tu )
put gloob
.. ..
|
|
|
|
|
|
|
DeoChomp
|
Posted: Tue Nov 08, 2016 1:42 pm Post subject: RE:Pokemon name making |
|
|
Thank you very much
|
|
|
|
|
|
|
|