Page 1 of 1

view moving

PostPosted: Fri Oct 14, 2011 4:08 am
by NightOfHorror
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. :)

Re: view moving

PostPosted: Fri Oct 14, 2011 4:12 am
by skydereign
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
}

Re: view moving

PostPosted: Fri Oct 14, 2011 4:24 am
by NightOfHorror
thanks. :D