Game Development Community

Connecting Levels With Trigger

by Bruce Slabinski · in Torque Game Builder · 01/04/2007 (1:12 pm) · 3 replies

Thank you very much everyone. I have found my error and now I'll try to finish my game.

#1
01/04/2007 (2:48 pm)
Umm... No need to rush but I need this info by tomorrow.
#2
01/04/2007 (3:09 pm)
On this line:
finish1 = %this;
This is wrong. You can't assign a class from a variable like that (ie., it's not an 'lvalue' as a C compiler would say). What are you trying to do with this?

On this line:
loadLevel(%level_2.t2d); = %mode;

I don't know what you are trying to do with the '=%mode' statement. If you want to assign the return value of 'loadLevel' to %mode, make it like this instead:
%mode = loadLevel(%level_2.t2d);

However, I don't know if loadLevel returns a value or not, I was just assuming that that is what you were trying to do. In any case, those would both provoke syntax errors (and sometimes the compiler notices an error when it reaches the line after where the actual error is, so that might be what it's telling you those two lines in particular).
#3
01/04/2007 (3:57 pm)
Now there isn't any errors but its not doing what I want it to.