Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 14 Votes - 2.93 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge Threadᆦ ᆦ ᆦ
Author Message
Homicide13 Offline
Senior Member

Posts: 323
Joined: Nov 2010
Reputation: 14
Post: #155
RE: [CHALLENGE THREAD]

The private functions seem to have to be of the "void" type though. My code
PHP Code: (Select All)
    private string GetOtherEnt(string sCurrentEnt)
    {
        if(
sCurrentEnt == Ent1.sEntity) return Ent2.sEntity;
        else return 
Ent1.sEntity;
    }
    
    private 
string GetAttachedTo(string sAttachedEnt)
    {
        if(
sAttachedEnt == Ent1.sAttachedEntity) return Ent1.sEntity;
        else return 
Ent2.sEntity;
    }
    
    private 
int ABS(int i)
    {
        if(
<= 0) return (-i);
        else return 
i;
    } 

gives me 3 "ERR : Can't return value when return type is 'void'" messages when I try to run it in game. I suppose I could get around this by using reference parameters but I'd rather just do it normally...

Also, the bridges seem to move up and down at different speeds - does anybody know why?

Well other than the question I had before, my problem with private functions, and the last question stated above, my solution is completely done. It provides a "BalanceSystm" module that allows the programmer to implement a balance system with any two vertical move objects by adding only 3 lines of code (also provided they have the move entities are the same and that the user provides another invisible entity similar to the one Apjjm provided for the challenge named "<MoveEntName>Collider").

There are a couple of limitations (ie it can only detect one kind of weight, etc.), but other than that it's completely portable.

(This post was last modified: 04-27-2012 03:51 AM by Homicide13.)
04-27-2012 02:31 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Challenge Threadᆦ ᆦ ᆦ - nemesis567 - 04-10-2012, 02:49 PM
RE: [CHALLENGE THREAD] - JetlinerX - 04-10-2012, 04:49 PM
RE: [CHALLENGE THREAD] - Cranky Old Man - 04-10-2012, 05:12 PM
RE: [CHALLENGE THREAD] - AnthonyTrix - 04-10-2012, 05:40 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 05:45 PM
RE: [CHALLENGE THREAD] - Kreekakon - 04-10-2012, 06:13 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 06:24 PM
RE: [CHALLENGE THREAD] - Kreekakon - 04-10-2012, 06:28 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 06:35 PM
RE: [CHALLENGE THREAD] - Putmalk - 04-10-2012, 06:53 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 06:56 PM
RE: [CHALLENGE THREAD] - palistov - 04-10-2012, 07:44 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 08:02 PM
RE: [CHALLENGE THREAD] - palistov - 04-10-2012, 08:27 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 08:31 PM
RE: [CHALLENGE THREAD] - palistov - 04-10-2012, 09:04 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 09:09 PM
RE: [CHALLENGE THREAD] - palistov - 04-10-2012, 09:39 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-10-2012, 09:50 PM
RE: [CHALLENGE THREAD] - Miss Rigi - 04-10-2012, 10:20 PM
RE: [CHALLENGE THREAD] - palistov - 04-10-2012, 10:30 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-11-2012, 01:09 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-11-2012, 01:01 PM
RE: [CHALLENGE THREAD] - ClayPigeon - 04-11-2012, 02:58 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-11-2012, 05:20 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-11-2012, 07:56 PM
RE: [CHALLENGE THREAD] - ClayPigeon - 04-11-2012, 09:48 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-12-2012, 01:09 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-12-2012, 06:16 AM
RE: [CHALLENGE THREAD] - ClayPigeon - 04-12-2012, 09:47 AM
RE: [CHALLENGE THREAD] - DRedshot - 04-12-2012, 11:26 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-12-2012, 02:04 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-12-2012, 04:26 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-12-2012, 06:19 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-12-2012, 07:11 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-12-2012, 07:49 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-12-2012, 07:51 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-12-2012, 09:20 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-12-2012, 09:40 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-14-2012, 01:43 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-14-2012, 05:22 PM
RE: [CHALLENGE THREAD] - Putmalk - 04-14-2012, 05:59 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-14-2012, 06:17 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-14-2012, 07:14 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-14-2012, 07:33 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-14-2012, 08:10 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-14-2012, 08:38 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-14-2012, 09:03 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-14-2012, 09:27 PM
RE: [CHALLENGE THREAD] - DRedshot - 04-14-2012, 09:12 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-14-2012, 08:39 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-14-2012, 08:47 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-14-2012, 08:51 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-14-2012, 09:27 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-14-2012, 11:38 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-14-2012, 10:32 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 12:24 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-15-2012, 12:50 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 12:30 AM
RE: [CHALLENGE THREAD] - Apjjm - 04-15-2012, 12:32 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 12:34 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 01:21 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-15-2012, 01:32 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 01:53 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 02:00 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 02:03 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 02:11 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-15-2012, 02:27 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 02:37 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 02:45 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-15-2012, 02:51 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 02:58 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-15-2012, 02:59 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 03:09 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 04:31 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 01:59 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 03:01 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 04:10 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 06:27 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 06:39 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-15-2012, 06:46 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-15-2012, 06:55 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 04:41 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 01:44 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 05:37 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 05:40 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 05:46 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 05:49 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 05:57 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 05:57 PM
RE: [CHALLENGE THREAD] - DRedshot - 04-17-2012, 05:59 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 06:00 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 06:06 PM
RE: [CHALLENGE THREAD] - DRedshot - 04-17-2012, 06:34 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 06:40 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 07:08 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 08:24 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 08:57 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-17-2012, 09:16 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 10:22 PM
RE: [CHALLENGE THREAD] - DRedshot - 04-17-2012, 10:52 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 11:31 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-17-2012, 11:12 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-17-2012, 11:33 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-17-2012, 11:57 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-18-2012, 01:05 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 12:03 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 01:35 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 12:10 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-18-2012, 04:01 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 04:03 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-18-2012, 04:21 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 04:21 PM
RE: [CHALLENGE THREAD] - Your Computer - 04-18-2012, 05:08 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 05:40 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-18-2012, 08:49 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-18-2012, 08:57 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-18-2012, 09:06 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-19-2012, 06:05 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-19-2012, 06:21 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-19-2012, 07:51 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-19-2012, 08:36 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-19-2012, 08:43 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-19-2012, 09:09 AM
RE: [CHALLENGE THREAD] - Apjjm - 04-19-2012, 01:56 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-19-2012, 04:17 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-19-2012, 04:19 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-19-2012, 05:09 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-19-2012, 02:09 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-20-2012, 07:03 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-20-2012, 07:24 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-20-2012, 09:00 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-20-2012, 11:50 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-21-2012, 01:34 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-24-2012, 02:54 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-24-2012, 09:33 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-24-2012, 09:51 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-24-2012, 09:54 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-25-2012, 12:20 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-26-2012, 12:02 AM
RE: [CHALLENGE THREAD] - Apjjm - 04-26-2012, 02:00 AM
RE: [CHALLENGE THREAD] - Rapture - 04-26-2012, 05:17 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-26-2012, 06:44 AM
RE: [CHALLENGE THREAD] - Apjjm - 04-26-2012, 01:57 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-26-2012, 01:59 PM
RE: [CHALLENGE THREAD] - Apjjm - 04-26-2012, 07:29 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-26-2012, 09:26 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-26-2012, 10:34 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-26-2012, 11:36 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-26-2012, 11:43 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-27-2012, 12:02 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-27-2012, 12:21 AM
RE: [CHALLENGE THREAD] - Apjjm - 04-29-2012, 09:29 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-27-2012, 01:29 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-27-2012, 02:17 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-27-2012 02:31 AM
RE: [CHALLENGE THREAD] - Your Computer - 04-27-2012, 03:49 AM
RE: [CHALLENGE THREAD] - Homicide13 - 04-27-2012, 04:06 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-27-2012, 01:56 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-27-2012, 04:24 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-29-2012, 09:55 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-30-2012, 05:22 AM
RE: [CHALLENGE THREAD] - nemesis567 - 04-30-2012, 12:54 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-30-2012, 01:38 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-30-2012, 02:02 PM
RE: [CHALLENGE THREAD] - Homicide13 - 04-30-2012, 03:04 PM
RE: [CHALLENGE THREAD] - nemesis567 - 04-30-2012, 05:26 PM
RE: [CHALLENGE THREAD] - Homicide13 - 05-01-2012, 12:48 AM
RE: [CHALLENGE THREAD] - nemesis567 - 05-01-2012, 01:12 AM
RE: [CHALLENGE THREAD] - Homicide13 - 05-01-2012, 05:20 AM
RE: [CHALLENGE THREAD] - Your Computer - 05-01-2012, 11:22 AM
RE: [CHALLENGE THREAD] - Homicide13 - 05-01-2012, 12:37 PM
RE: [CHALLENGE THREAD] - nemesis567 - 05-01-2012, 01:35 PM
RE: [CHALLENGE THREAD] - Your Computer - 05-01-2012, 02:07 PM
RE: [CHALLENGE THREAD] - Apjjm - 05-01-2012, 03:47 PM
RE: [CHALLENGE THREAD] - nemesis567 - 05-01-2012, 04:04 PM
RE: [CHALLENGE THREAD] - Homicide13 - 05-01-2012, 06:01 PM
RE: [CHALLENGE THREAD] - Apjjm - 05-01-2012, 06:39 PM
RE: [CHALLENGE THREAD] - Homicide13 - 05-02-2012, 05:45 AM
RE: [CHALLENGE THREAD] - Theforgot3n1 - 05-02-2012, 09:19 PM
RE: [CHALLENGE THREAD] - Homicide13 - 05-02-2012, 10:33 PM
RE: [CHALLENGE THREAD] - nemesis567 - 05-02-2012, 11:24 PM
RE: [CHALLENGE THREAD] - nemesis567 - 05-05-2012, 04:02 PM
RE: [CHALLENGE THREAD] - Homicide13 - 05-06-2012, 04:48 AM
RE: [CHALLENGE THREAD] - Homicide13 - 05-06-2012, 10:03 PM
RE: [CHALLENGE THREAD] - Apjjm - 05-07-2012, 02:37 AM
RE: [CHALLENGE THREAD] - Homicide13 - 05-07-2012, 02:58 AM
RE: [CHALLENGE THREAD] - nemesis567 - 05-07-2012, 11:00 PM
RE: [CHALLENGE THREAD] - Homicide13 - 05-08-2012, 01:22 AM
RE: [CHALLENGE THREAD] - nemesis567 - 05-08-2012, 01:38 AM



User(s) browsing this thread: 1 Guest(s)