I'm confused about what exactly it takes to make a custom story and also I'm not sure I can do it... I have nothing downloaded or anything, so if literally ANYONE could help me, step by step, general directions, anything would help cause I think I have some pretty cool ideas...
Hi Kyle new question, im starting to go into the depths of scripting, getting out of my comfort zone, can you explain a switch statement and what it takes for it to work ive looked at the Amnesia 101 thread it makes no sense to me, it tells me what it does and shows the structure but how do i make the structure follow the next case?
what does it need to make it do what you want it to do, such as, intro's, screen effects or whatever else they do, can you explain it to me in layman's terms so that a noob like myself knows how it works, im sure once you were in my position and can understand exactly where im coming from.
switch(Number_Y){
case 1:
// Do this stuff if Number_Y is 1
break;
case 2:
// Do this stuff if Number_Y is 2
break;
case 3:
// Do this stuff if Number_Y is 3
break;
}
is like the computer saying
"Get the value of "Number_Y" for me!
If it is 1, do the stuff in case 1:
If it is 2, do the stuff in case 2:
If it is 3, do the stuff in case 3:
If it is x, do the stuff in case x:"
switch(Number_Y){
case 1:
// Do this stuff if Number_Y is 1
break;
case 2:
// Do this stuff if Number_Y is 2
break;
case 3:
// Do this stuff if Number_Y is 3
break;
}
where would the Y == 2 go?
in case 2: ?
(08-30-2011, 12:47 PM)Kyle Wrote: Erg, It appears I was too slow to answer. xD
it wouldn't hurt to have 2 answers
(This post was last modified: 08-30-2011, 12:55 PM by Tesseract.)