Choosing charaters

You must understand the Game Editor concepts, before post here.

Choosing charaters

Postby knucklecrunchgames » Sun Feb 23, 2014 12:23 pm

Hello everybody. I'm making a game where you get to choose a charater, and they will be loaded in the next dat. But I have no idea how to do that

Please help me.

Thanks :)
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Choosing charaters

Postby MrJolteon » Sun Feb 23, 2014 4:34 pm

You have to use saveVars and loadVars.
http://hastebin.com/birejogemo.erl
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: Choosing charaters

Postby knucklecrunchgames » Sun Feb 23, 2014 4:43 pm

MrJolteon wrote:You have to use saveVars and loadVars.
http://hastebin.com/birejogemo.erl


I am totally confused, where do I put this.
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Choosing charaters

Postby MrJolteon » Sun Feb 23, 2014 4:45 pm

The saveVars goes in the event that is executed after you select a character, and the loadVars goes in a Create Actor event on the view actor of the second dat.
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: Choosing charaters

Postby knucklecrunchgames » Sun Feb 23, 2014 4:54 pm

MrJolteon wrote:The saveVars goes in the event that is executed after you select a character, and the loadVars goes in a Create Actor event on the view actor of the second dat.


So once I load the varabiale, it will create the charater chosen?
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Choosing charaters

Postby MrJolteon » Sun Feb 23, 2014 5:06 pm

knucklecrunchgames wrote:
MrJolteon wrote:The saveVars goes in the event that is executed after you select a character, and the loadVars goes in a Create Actor event on the view actor of the second dat.


So once I load the varabiale, it will create the charater chosen?

The variable is just a number until you give it purpose. Just loading it won't do anything.
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: Choosing charaters

Postby knucklecrunchgames » Sun Feb 23, 2014 5:21 pm

MrJolteon wrote:
knucklecrunchgames wrote:
MrJolteon wrote:The saveVars goes in the event that is executed after you select a character, and the loadVars goes in a Create Actor event on the view actor of the second dat.


So once I load the varabiale, it will create the charater chosen?

The variable is just a number until you give it purpose. Just loading it won't do anything.


but how do I give it a purpose?
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Choosing charaters

Postby MrJolteon » Sun Feb 23, 2014 7:57 pm

knucklecrunchgames wrote:
MrJolteon wrote:
knucklecrunchgames wrote:
MrJolteon wrote:The saveVars goes in the event that is executed after you select a character, and the loadVars goes in a Create Actor event on the view actor of the second dat.


So once I load the varabiale, it will create the charater chosen?

The variable is just a number until you give it purpose. Just loading it won't do anything.


but how do I give it a purpose?

Image
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: Choosing charaters

Postby knucklecrunchgames » Mon Feb 24, 2014 8:15 am

MrJolteon wrote:
knucklecrunchgames wrote:
MrJolteon wrote:
knucklecrunchgames wrote:
MrJolteon wrote:The saveVars goes in the event that is executed after you select a character, and the loadVars goes in a Create Actor event on the view actor of the second dat.


So once I load the varabiale, it will create the charater chosen?

The variable is just a number until you give it purpose. Just loading it won't do anything.


but how do I give it a purpose?

Image


These forums are not very great for helping people out
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Choosing charaters

Postby skydereign » Mon Feb 24, 2014 8:47 am

knucklecrunchgames wrote:
MrJolteon wrote:
knucklecrunchgames wrote:
MrJolteon wrote:The saveVars goes in the event that is executed after you select a character, and the loadVars goes in a Create Actor event on the view actor of the second dat.


So once I load the varabiale, it will create the charater chosen?

The variable is just a number until you give it purpose. Just loading it won't do anything.


but how do I give it a purpose?

This is vital to understanding how to use variables. What MrJolteon is talking about is variables don't do anything by themselves. You need to write code that triggers using the value of the variable loaded in for it to work. For example.
Code: Select all
loadVars("save", "save");
// loaded character variable
switch(variable)
{
    case 0: // this code makes it so variable==0 means create player
    // put the create actor code here for player
     break;

    // and so on
    case 1:
    // put the create actor for player2
    break;
}
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Choosing charaters

Postby digiot » Mon Feb 24, 2014 12:27 pm

@ skydereign : Nice, that you saved your composure here...

@ knucklecrunchgames : I have to disagree on this respectfully :
knucklecrunchgames wrote:These forums are not very great for helping people out

Come on, you and many others are being helped a lot by the cracks on this forum,
and you know that well !
I have to confirm, the tutorials and helpfull threads are a mess, but you are here
since 1.5 years, you should know, where to find them.
And actually, lcl is starting a great project, to teach GE and programming for noobs
and advanced ones equally , why don't you get in there :
http://game-editor.com/forum/viewtopic.php?f=1&t=13175&sid=37dea8d537a58fb9a551ce63a510c3ff

Regarding coding generally :
If you really want to "make games", you necessarily have to learn coding, at least
a little bit. Have you ever tried Byob (SNAP!)? Then you would have noticed, that you
are really quickly coming into the same pressure, to know/learn something about the
structures and components of programming languages at all !
C is known as the "granny" under the programming languages, but nearly any of them
has a so called "c-ish" style (except some exotic ones), so you can start with what
ever you want, just to get the fundamentals.
And be sure, as soon as you put any interest into coding, you will not have much to
learn, it will flow into your brain automatically, and becomes a pure pleasure for you !

Cheers !
User avatar
digiot
 
Posts: 211
Joined: Sat Mar 17, 2012 2:29 pm
Score: 7 Give a positive score

Re: Choosing charaters

Postby knucklecrunchgames » Tue Feb 25, 2014 8:44 am

@digiot. Yes I regret making that post. But I just get angry when people post stupid idiots with loads of hands
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Re: Choosing charaters

Postby MrJolteon » Tue Feb 25, 2014 9:03 am

knucklecrunchgames wrote:But I just get angry when people post stupid idiots with loads of hands

It's called an "infinite facepalm", not a stupid idiot with loads of hands.
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: Choosing charaters

Postby digiot » Tue Feb 25, 2014 11:01 am

@ knucklecrunchgames : I just wanted to proof your statement wrong, and maybe help you
a little, nothing to regret for you.
And no reason for you, to insult the "guy with the loads of hands", he likely just is
Octoman. Mr. Joelton has another, more curious explanation for it...
No, seriously, put your spot more on the second part of my former post. Why not entering
lcl's school-thread, I did it too.
Though he is known as a finish guy, who are suspected for producing Nokia mobiles, beeing
drunken whole the year, and eating Santa Claus' draft animals, he for sure is a nice,
knowledgable and polite guy, who can help not only you a lot !
Think about it,

Cheers !
User avatar
digiot
 
Posts: 211
Joined: Sat Mar 17, 2012 2:29 pm
Score: 7 Give a positive score

Re: Choosing charaters

Postby knucklecrunchgames » Tue Feb 25, 2014 6:07 pm

MrJolteon wrote:
knucklecrunchgames wrote:But I just get angry when people post stupid idiots with loads of hands

It's called an "infinite facepalm", not a stupid idiot with loads of hands.


Whatever its called it does not help my question. :|
User avatar
knucklecrunchgames
 
Posts: 1071
Joined: Wed Nov 21, 2012 8:01 pm
Location: In gameEditor.exe
Score: 17 Give a positive score

Next

Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest