Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,382 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
menu and level problem #252638
02/19/09 11:48
02/19/09 11:48
Joined: Aug 2008
Posts: 49
V
Vyse220 Offline OP
Newbie
Vyse220  Offline OP
Newbie
V

Joined: Aug 2008
Posts: 49
How can i start a level by calling it from the menu?
For now i've included the code of the level (include <lvl1>) in the script of the menu and i call it with a level load, it works, but it start also all the action and function in the menu and when the level start i have some problem.
However when i call the menu when i finish the level the game crash with: can't load in the same frame: level

Someone can explane me a way to do it without modify all the level script?

Thx for the help.

Re: menu and level problem [Re: Vyse220] #252647
02/19/09 12:52
02/19/09 12:52
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline
Member
yorisimo  Offline
Member
Y

Joined: Mar 2007
Posts: 197
I think you just have to add a wait(1) statement before you load the level. You can't close a previous level and open a new one in the same time step.


Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing
Re: menu and level problem [Re: yorisimo] #252708
02/19/09 20:51
02/19/09 20:51
Joined: Aug 2008
Posts: 49
V
Vyse220 Offline OP
Newbie
Vyse220  Offline OP
Newbie
V

Joined: Aug 2008
Posts: 49
Originally Posted By: yorisimo
I think you just have to add a wait(1) statement before you load the level. You can't close a previous level and open a new one in the same time step.

already done, but i still have the error.
I also got some problem when i open the level from the menu, missing enemy and music, i hope there's a way to open the level like you are opening it without the menu (no include etc)

Re: menu and level problem [Re: Vyse220] #252755
02/20/09 03:59
02/20/09 03:59
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

I have a game that uses a menu with buttons. This is the hub of the game.

If you press the first button ...the function for that button is activated
This function stops the panels , sets the tone for the next level
waits the amount of time needed and opens the appropriate level that is
activated by the first button, starts the new functions.....

Same for other buttons.

The idea is to seperate things.

Hope this helps. smile

Re: menu and level problem [Re: Vyse220] #252779
02/20/09 07:09
02/20/09 07:09
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
Check Aum81's faq; it includes an example that does just that.

Re: menu and level problem [Re: George] #252820
02/20/09 16:05
02/20/09 16:05
Joined: Aug 2008
Posts: 49
V
Vyse220 Offline OP
Newbie
Vyse220  Offline OP
Newbie
V

Joined: Aug 2008
Posts: 49
thx for that, but now that i've done i've a big problem.
for some reason when i open the level from the menù it's very slow!
How could it be? what should i do?

Re: menu and level problem [Re: Vyse220] #252892
02/21/09 06:07
02/21/09 06:07
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
Press F11 and tell me the frame rate value.

Re: menu and level problem [Re: George] #252981
02/21/09 22:26
02/21/09 22:26
Joined: Aug 2008
Posts: 49
V
Vyse220 Offline OP
Newbie
Vyse220  Offline OP
Newbie
V

Joined: Aug 2008
Posts: 49
For some reasons now the frame rate is 50 in the level and alson the menu, first it was 50 in the menù and 30 in the level.
I just stopped the music of the menù before the start of the level o_o
edit: aw, i still have the can't load in the same frame problem when i load the menu at the end of the level.
edit2: oh, don't know why, now the frame rate is 30 and it's really slow, why?

Last edited by Vyse220; 02/22/09 11:35.
Re: menu and level problem [Re: Vyse220] #253153
02/23/09 06:00
02/23/09 06:00
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
You might have an application that runs in the background and eats lots of cpu resources. What are the specs of your computer?


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1