Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Draco

#1
As you can see, my biggest problem is making menu. Can you tell me any code to make menu? I need 4 things:
1.Start a new game
2.Load game
3.Show intro text (I planned this like another room, but if you have better idea just tell me)
4.Exit
So, could you tell me?
#2
Hi,
I have this problem:
I want to make a menu for my game (when I'll finish it I'll upload it).
So I want to hide "Iconbar" and have cursor like a pointer.
I've tried this code for it:
function MenuRollDown() {
   Flag++;
   if ((55<Flag)&&(Flag<150)) gMenu.SetSize(320, (Flag-50)*2);
}

function MenuInit() {
   gMenu.SetSize(320, 1);
}

function MenuOn() {
   gMenu.Visible = true;
mouse.UseModeGraphic (eModePointer);
 gIconbar.Visible = false;
}

function MenuOff() {
   gMenu.Visible = false;
   mouse.UseModeGraphic (eModeWalkto);
 gIconbar.Visible = true;
}
So the problem is like this: when i start the game the cursor is in Walkto mode and I can't click on the menu buttons. I just want to have the cursor in pointer mode.
Is there any solution? ???

Draco
#3
Hi,
I have a little problem.
I have started one game and I wanted to spare some time so I used the code from the Demo game (I hope it doesn't matter ???). Of course I changed the code a little bit, after the change the code is:
function room_c() {
   // script for room: Repeatedly execute
   if (FadeToBlack()==false) {
      SetScreenTransition(eTransitionDissolve);
      player.ChangeRoom(Menu.crm);
    }

So I have two problems; first one: in the original code it was it was like: player.ChangeRoom(crmMenu);
and when I copied it the AGS said its "unknown token:crmMenu" so I tried to change it a little bit and it has disapper. But I don't know if its right. The second problem is that the AGS say that in the last part of the problem code  (player.ChangeRoom(Menu.crm); ) is expected semicolon. But the semicolon is already there.
Could you help me?

Draco
SMF spam blocked by CleanTalk