view moving

Non-platform specific questions.

view moving

Postby NightOfHorror » Fri Oct 14, 2011 4:08 am

okay, I am going to tell you I have selection of colors as a menu in my view. If I select yellow how can I make the view jump to another menu. I don't exactly want to give out what the game is. It is a surprise. Just a fun project while I wait on a few things for TTM p1. :)
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score

Re: view moving

Postby skydereign » Fri Oct 14, 2011 4:12 am

Well, all it is is moving the view, depending on a color. So, just have a variable, and perhaps a switch statement. For example, it might look like this.
Code: Select all
switch(color)
{
    case 0: // black
    view.x=0;
    view.y=0;
    break;

    case 1: // red
    view.x=1000;
    view.y=0;
    break;

    // and so on
}
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: view moving

Postby NightOfHorror » Fri Oct 14, 2011 4:24 am

thanks. :D
viewtopic.php?f=2&t=12136
"I have not failed. I just found 10,000 ways that wont work." quoted by Thomas Edison.
Over the year, I decided my motto for me is I am knowledgeable, but not practical.
User avatar
NightOfHorror
 
Posts: 1823
Joined: Fri Aug 27, 2010 2:50 am
Location: Cedar Hill, MO, of the USA
Score: 51 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest