Game Development Community

Load level behavior

by Jorn Theunissen · in Technical Issues · 12/28/2008 (7:30 am) · 2 replies

Hello,

Im trying to get a level loaded by using a button. I've downloaded the behavior from the TDN behavior list. The behavior can be found: Behaviors--> GUI --> Levelbutton.

I have a simple object in my scene. I can succesfully add the behavior to this object. Within the behavior I can fill in the level were it needs to go to (level1.t2d). However, when I try the game it doesn't work. The Hover and Click functions work. But when you click on the button it jumps to a black screen. The console says the following: error loading level level1.t2d. Invalid file.

The file does exist en I've checked the names like a hundred times.

I use Torgue game builder 1.7.3 on Windows XP Pro

anybody know the answer?

#1
12/28/2008 (9:43 am)
Make the field read:
game/data/levels/level1.t2d

instead of:
level1.t2d



Cheers,
Jim G
#2
12/28/2008 (10:25 am)
Awesome!!

that did the trick.

Thanks a lot! :D