;

PDA

Click to See Complete Forum and Search --> : Edit Box help


ConnELITE
07-29-2005, 06:49 PM
I had an edit box that goes up 10 every second (I made a scene saying "edit box=edit box +10" [delay 1 sec]). But I want the scene to stop once the edit box reaches 100. I tried an action saying "if (edit box>99){stop movie}". I know i have the right idea but im writing it wrong. please help.

blanius
07-29-2005, 09:51 PM
I had an edit box that goes up 10 every second (I made a scene saying "edit box=edit box +10" [delay 1 sec]). But I want the scene to stop once the edit box reaches 100. I tried an action saying "if (edit box>99){stop movie}". I know i have the right idea but im writing it wrong. please help.

why not just wrap the first code in an If statement

if (editboxvar<100){
editboxvar+=10
}

Also best to use a variable for the editbox when doing math with it.

ConnELITE
07-30-2005, 12:39 AM
uhrrrgg!!! Sorry, I was thinking so hard to figure out what to do and you tell me and I find out the answer was sooo easy!! oh well, I guess some things you just need to be told. Thanks.