Choosing charaters

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

Re: Choosing charaters

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

skydereign 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?

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;
}


Thankyou sky, how do you know all of this code! :shock: I'm wondering if makslane forced you to make ge (No offense maks :p It's a joke)
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 knucklecrunchgames » Tue Feb 25, 2014 6:23 pm

digiot wrote:@ 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 !


I just wanted to proof your statement wrong, and maybe help you

I'm sure you do :P

I won't be joining the tutorials. No questions asked.

I just hate that picture alot I also hate facepunch.
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 lcl » Tue Feb 25, 2014 7:06 pm

@knucklecrunchgames: I'd really like to have you as a student there, it would be just what you are asking for.
I would first explain all the basics of Game Editor, and I'm sure you'd find that useful. :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Previous

Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron