Messages from me to you and questions

Game Editor comments and discussion.

Messages from me to you and questions

Postby NightOfHorror » Wed Nov 23, 2011 4:28 pm

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_
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: Messages from me to you and questions

Postby Hblade » Wed Nov 23, 2011 4:59 pm

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Messages from me to you and questions

Postby SuperSonic » Wed Nov 23, 2011 8:47 pm

@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 :)
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: Messages from me to you and questions

Postby lcl » Wed Nov 23, 2011 9:06 pm

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.
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Messages from me to you and questions

Postby Jagmaster » Wed Nov 23, 2011 10:42 pm

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 3090 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 ;)
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: Messages from me to you and questions

Postby SuperSonic » Wed Nov 23, 2011 11:23 pm

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
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: Messages from me to you and questions

Postby Game A Gogo » Wed Nov 23, 2011 11:32 pm

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
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Messages from me to you and questions

Postby AltruismIsDead » Wed Nov 23, 2011 11:51 pm

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)
User avatar
AltruismIsDead
 
Posts: 38
Joined: Mon Sep 19, 2011 10:55 am
Location: Milwaukee, WI
Score: 6 Give a positive score

Re: Messages from me to you and questions

Postby Jagmaster » Thu Nov 24, 2011 1:00 am

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!
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: Messages from me to you and questions

Postby lcl » Thu Nov 24, 2011 6:59 pm

Do you still need help with this, NoH? :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Messages from me to you and questions

Postby NightOfHorror » Fri Nov 25, 2011 3:32 am

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.
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: Messages from me to you and questions

Postby SuperSonic » Fri Nov 25, 2011 2:32 pm

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 :)
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: Messages from me to you and questions

Postby Game A Gogo » Fri Nov 25, 2011 3:44 pm

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;
    }
}
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Messages from me to you and questions

Postby NightOfHorror » Fri Nov 25, 2011 4:52 pm

Thanks +1
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: Messages from me to you and questions

Postby SuperSonic » Fri Nov 25, 2011 5:50 pm

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 =(
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Next

Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest