Page 1 of 2

Messages from me to you and questions

PostPosted: Wed Nov 23, 2011 4:28 pm
by NightOfHorror
I have some good and some bad news. Let's start with the bad news.

For the longest time I have been working on TTM part 1. Sadly, I lost my flash-drive. :( It is horrible to say this, and you might ask if I had a back up. The answer is no. I will try to find it. If I don't then TTM will be a lost project, and I will have to put it to rest.

Now the good news.

I have luckily created an idea. It was originally made as a joke in real life. It is a choose your own adventure, and luckily after people playing the game on my notebooks, it has been a near finished game in my head. It will be a strange game, as I said, it was supposed to be a pointless joke.

My first question is how would I have a thing on where people can type in there name. I have ideas that would take a lot of coding as it would use basic knowledge. Tell me the shortest code known to do this.



Thanks for reading

_NightOfHorror_

Re: Messages from me to you and questions

PostPosted: Wed Nov 23, 2011 4:59 pm
by Hblade
hmm, don't think I can help you there ^^ And dude I know your frustration. When I lost my flash drive I was going nuts xD Looking all over the place for it. Then wham, it appears right in front of me. (Check and see if its plugged into your comp already ;) ) Also my other one (with my windows back up) got washed in the washer... XD Dunno if i t still works, havent tested it.

Edit: IT WORKS!!! XD

Re: Messages from me to you and questions

PostPosted: Wed Nov 23, 2011 8:47 pm
by SuperSonic
@NOH: Before you can ask us what code to use, you first have to give us an idea about how the player will actually enter his name. For example, does the player use his keyboard to type the name or does he use an on-screen keyboard? If he uses an on-screen key board then does he use the mouse to select characters or the arrow keys? I may be able to help if you can give a few more details like that :)

Re: Messages from me to you and questions

PostPosted: Wed Nov 23, 2011 9:06 pm
by lcl
NightOfHorror wrote:My first question is how would I have a thing on where people can type in there name. I have ideas that would take a lot of coding as it would use basic knowledge. Tell me the shortest code known to do this.

So you want people to be able to name the character, and then the game to call the character with that name? I can't think of a way to do this with long code xD

"I have ideas that would take a lot of coding as it would use basic knowledge."
Is this same as I don't have any ideas on how to do that? :wink:
That's what I think because I know that you barely know anything about coding yet. ;D

It's very simple :D
I can help you to make it.

Re: Messages from me to you and questions

PostPosted: Wed Nov 23, 2011 10:42 pm
by Jagmaster
Hey, speaking of flash drives, the laptop I was working on had my flash drive plugged into the side. The laptop fell onto the floor right on top of that drive. I assumed the drive was totaled because the connecter was bent up. I plugged it back in and It worked. Imagine that! :shock:

Flash drives are pretty much invincible, except if you loose them...
Sorry to hear about that, are you sure it isn't saved anywhere else? :cry:

Edit: Photographic Evidence!

Flash Drive.jpg
Flash Drive.jpg (26.75 KiB) Viewed 3089 times


Actually I've heard accounts of photos getting messed up after long periods of flash storage. It's best to use them solely for back-up proposes only anyway ;)

Re: Messages from me to you and questions

PostPosted: Wed Nov 23, 2011 11:23 pm
by SuperSonic
Losing a flash drive really sucks. I did that twice I think. The first time I realized it was right where I put it. I just didn't see it. The second time it ended up in the washer but amazingly it still worked :shock:

Anyways, I hope you find yours :D

Re: Messages from me to you and questions

PostPosted: Wed Nov 23, 2011 11:32 pm
by Game A Gogo
You know even if you would of broken that plug, the flash drive is still salvageable, simply arm yourself with a soldering iron!
and as for things going in the washer, if the thing isn't plugged in when it get immersed in water, and that there is no more water in it, it doesn't matter! :D

Re: Messages from me to you and questions

PostPosted: Wed Nov 23, 2011 11:51 pm
by AltruismIsDead
Well, Since I am new to both programming and the Game-editor engine, I can only offer you this advice I read from one of my C programming books...

Code: Select all
int main()
{
     Char me[20]

     printf("What is your name?");
     scanf("%s" ,&me);
     Printf("Nice to meet you, %s!\n" ,me);

     return(0);
}


What that does there is create a character (char) for the word "me" which can hold up to 20 characters me[20] (I believe)

In C, printf is basically a keyword to print what's inside the brackets and quotations, while scanf is a keyword that waits until something is typed and stores it into the character (char) worCd "me". The "%s" line in scanf("%s" ,&me); is basically a place holder. So when the next line goes "Nice to meet you, %s !" followed by the char "me" it's telling the placeholder %s to insert the value of me into that spot.

So say your name is David and you typed that in, "me" holds the character string/value of "David" and %s is the place holder.

Now please keep in mind I am really new at both Game-Editor and programming, so I don't know if that code is compatible with GE at all, but maybe you can understand how it works and find the keywords Game Editor uses to create Character Strings "char", how it displays lines of text "printf", what keyword it uses to scan and store input text "scanf("%s" ,me); and the placeholder "%s" .

I am really hoping that comes as some sort of help into figuring out what you need done, and my apologies in advance if it isn't compatible or doesn't work out with Game Editor (also for any spelling errors since I had typed this all on my iPad)

Re: Messages from me to you and questions

PostPosted: Thu Nov 24, 2011 1:00 am
by Jagmaster
Game A Gogo wrote:You know even if you would of broken that plug, the flash drive is still salvageable, simply arm yourself with a soldering iron!
and as for things going in the washer, if the thing isn't plugged in when it get immersed in water, and that there is no more water in it, it doesn't matter! :D

Wow, okay cool!

Re: Messages from me to you and questions

PostPosted: Thu Nov 24, 2011 6:59 pm
by lcl
Do you still need help with this, NoH? :)

Re: Messages from me to you and questions

PostPosted: Fri Nov 25, 2011 3:32 am
by NightOfHorror
Whoa, topic got a lot of posts in a day. Thanks everyone for advice. Lcl, your right, I am saying I have no idea, but with the logic of coding I got in my head, I have a long, grueling, code that I would hate to use, and probably would not work anyway. It is a pick and click game, but for the name part you type in with computer/laptop keyboard.
I need help still. Haven't tried out your code yet Altruism. +1 for help even if it doesn't work.

Thank you! :D

Also you pick gender. Got that down, just wanted to say that option. Male=100 hp. Female=150hp, half attack damage as male for moves- punch, kick, and also female gets to have a magic move of their choice from a list of choices.

Re: Messages from me to you and questions

PostPosted: Fri Nov 25, 2011 2:32 pm
by SuperSonic
Hey NOH, I'm working on an example for inputing your own name. I'll post it here as soon as I'm done. I just have to add the backspace feature :D

Can anyone tell me how to erase the last character in a string? That would help a lot :)

Re: Messages from me to you and questions

PostPosted: Fri Nov 25, 2011 3:44 pm
by Game A Gogo
there is an example of this in my P2040 demo:
Code: Select all
for(k=0;k<255;k++)
{
    if(TD_String.text[k]==0)
    {
        TD_String.text[k-1]=0;
        break;
    }
}

Re: Messages from me to you and questions

PostPosted: Fri Nov 25, 2011 4:52 pm
by NightOfHorror
Thanks +1

Re: Messages from me to you and questions

PostPosted: Fri Nov 25, 2011 5:50 pm
by SuperSonic
Thanks gogo :D

Ok so it now works! I'm uploading it. Just one problem, if you press backspace when there is nothing in the name, the game crashes :| Don't know why sorry about that. And the number in the top left corner is the ID of the key you pressed last :wink:

http://www.multiupload.com/VWC1ULS8CA
I was going to use the GE uploader to upload the file but my computer was being a jerk =(