Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Pokemon name making
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DeoChomp




PostPosted: 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



Name Making.t
 Description:

Download
 Filename:  Name Making.t
 Filesize:  3.46 KB
 Downloaded:  178 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
lordroba




PostPosted: 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




PostPosted: Tue Nov 08, 2016 1:42 pm   Post subject: RE:Pokemon name making

Thank you very much
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: