Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,529 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Main menu? #393168
02/01/12 02:18
02/01/12 02:18
Joined: Nov 2009
Posts: 70
Siwler Offline OP
Junior Member
Siwler  Offline OP
Junior Member

Joined: Nov 2009
Posts: 70
I have main menu issues.
My main menu works fine before the game starts, I can navigate with the mouse from options to load pans, as soon as the game starts and I bring the menu back on, mouse courser wont come back on, games main pan is still on and weapons works(shoots) even duo game is set to freeze. Only players movement freeze and when I do somehow bring the courser back on then mouse courser ether freezes or it wont click on any of the options.

How can I fix this, I have been working on it for 7 days now and no luck.

Working with t_shooter_temple Light-C


Honesty will get you far, were dishonesty will get you only so far in life.

Re: Main menu? [Re: Siwler] #393185
02/01/12 11:16
02/01/12 11:16
Joined: Aug 2002
Posts: 2,183
Germany, BaW�
Rondidon Offline
Expert
Rondidon  Offline
Expert

Joined: Aug 2002
Posts: 2,183
Germany, BaW�
Are you strictly working with the templates or did you program the main menu by yourself?
Take a closer look at your code and think about what you did that could cause the errors.

For the mouse. This is a function that enables/disables the mouse cursor.

Code:
BMAP* cursor_bmap = "cursor.pcx";  //Bitmap

void mouse_on() 
{ 
  mouse_map = cursor_bmap;
  mouse_mode = 2;
  while (mouse_mode > 0) // move it over the screen
  {  
    vec_set(mouse_pos,mouse_cursor);
    wait(1);
  }
}

void mouse_off() 
{ 
  mouse_map = cursor_bmap;
  mouse_mode = 0;
}



Nevertheless I would heavily recomment to make your first steps not with the templates, but by doing the scripting tutorials. Don`t make a shooter in the first place, but think a bit smaller. Do a little quiz game. Or a jump and run. And script it entierly by yourself.

Tutorials: http://www.opserver.de/wiki/index.php/Scripting_Tutorials

I recomment doing the official tutorial step by step, and then take a look at Slin`s tutorial. After this you should be able to begin programming seriously. laugh

If you just want to play a bit around and get a closer look at the editors and stuff (and want to have some fun), I recomment Realspawn`s beginner tutorial.

Re: Main menu? [Re: Rondidon] #393201
02/01/12 13:22
02/01/12 13:22
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
yes, the first error reason is improper mouse handling (e.g. using 2 mouse loops at the same time - one for main menu and another for the game level).

as I see, you do not create a new empty level for the main menu (this is the only reason why its panels remain visible). a load_level(NULL); could help when you call again your main menu.

or use higher layer value for your main menu panels to cover everything, if you want to keep the game level with its panels.

I also dislike templates laugh


Free world editor for 3D Gamestudio: MapBuilder Editor

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