Menus

Game Editor comments and discussion.

Re: Menus

Postby Turon » Fri Feb 11, 2011 5:00 pm

Look and see if I did it right, the enter of play game needs some work. :roll:
Attachments
Load or play game.png
Menu test.zip
(117.18 KiB) Downloaded 94 times
Last edited by Turon on Tue Feb 15, 2011 6:35 am, edited 2 times in total.
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: Menus

Postby Turon » Mon Feb 14, 2011 12:56 pm

Anyone Interested? :(
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: Menus

Postby lcl » Sun Feb 20, 2011 11:21 am

Seems like you need some help with that menu thing...
Here is menu for you. :)
The demo contains also perfect anti-moonwalk for you! :D

I hope that helps! And if you need help understanding it, ask me!


EDIT:
One thing I have to explain now.
these kinds of codes:
Code: Select all
switch(variable)
{
    case 0:
        //something happens here
    break;

    case 1:
        //something happens here, too!
    break;
}

They work in a way like this:
1. They check the value of varible inside the brackets.
2. You can define what happens according to the value of that variable, and it's that
case x:
//here can be anything
break;
-thing.

case is the number of value and then comes what you want to do, like
switch(dir)
{
case 1:
player.x += 5;
break;
}
That code would move player 5 pixels to right when dir is equal to 1.

break is very important, it stops the event from repeating to other cases.

Sorry if I was unclear.
I hope this still cleared something to you. :)
Attachments
menuForTuron.zip
(457.44 KiB) Downloaded 98 times
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Menus

Postby Turon » Tue Feb 22, 2011 6:52 am

I saw it i will study it more intently when I have the time.

-Edit- 18/5/2015
Thank you Lcl :) ! You know the menu I used in Octopus game is actually based off this one.
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Previous

Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest