Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help! D:
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#5
RE: I need help! D:

Why not try taking out those unused categories for now (Journal, Levels). Your lang file (besides that) seems normal.

I would also like to help you out with your scripting a bit, to make it a bit more efficient:

Instead of spamming "if-else" statements, try using switch statements.

void func1(...)
{
//here I declare some timers, like you did, to the same function
}

void func2(string &in asTimer)
{

switch(asTimer)
{
  case "a":
    //stuff happens here
    //no "{" "}" brackets
  break;
  case "b":
  break;
  case "c":
  break;
}

}

That makes your code cleaner and easier to write. Just note that a, b, and c would be replaced by the names of your strings (case "adrian_breath").

(This post was last modified: 04-13-2012, 01:55 AM by Putmalk.)
04-13-2012, 01:51 AM
Find


Messages In This Thread
I need help! D: - by 7thProductions - 04-13-2012, 12:19 AM
RE: I need help! D: - by Cranky Old Man - 04-13-2012, 12:30 AM
RE: I need help! D: - by 7thProductions - 04-13-2012, 12:54 AM
RE: I need help! D: - by Cranky Old Man - 04-13-2012, 01:37 AM
RE: I need help! D: - by 7thProductions - 04-14-2012, 12:32 PM
RE: I need help! D: - by Datguy5 - 04-14-2012, 12:41 PM
RE: I need help! D: - by 7thProductions - 04-14-2012, 01:10 PM
RE: I need help! D: - by Datguy5 - 04-14-2012, 01:23 PM
RE: I need help! D: - by Putmalk - 04-13-2012, 01:51 AM



Users browsing this thread: 1 Guest(s)