simple...
- Started
- Last post
- 12 Responses
- chinaman
way of scripting something to move across the screen and start over when it reaches the end. thx in adv.
- lowimpakt0
#include
#includeint main(int argc, char *argv[])
{
int x = 1;
char str[]="this:is:a:object:to:move...
char *str1;/* hold when finished
*/
printf("String: %s
", str);/* extract first string from string sequence */
str1 = strtok(str, ":");/* loop first string after strt */
printf("%i: %s
", x, str1);/* loop until finishied */
while (1)
{
/* extract string from string sequence */
str1 = strtok(NULL, ":");/* check if there is nothing else to extract */
if (str1 == NULL)
{
printf("Tokenizing complete
");
exit(0);
}/* print string after tokenized */
printf("%i: %s
", x, str1);
x++;
}return 0;
}
- chinaman0
did you just completly fck my brain up just then? i think you did....yes you did.
- chinaman0
this is what i have =
onClipEvent (enterFrame) {
_x += speed;
this.speed = 2;}
can i make it restart after traveling X distance ? thx again
- mitsu0
"int main(int argc, char *argv[])"
console whore.
- Skylark0
I want a simple script that finish up my work without me being here....anyone?
- chinaman0
_root.work.fuckoff = yes;
- stewart0
if x>800
x=0
- mitsu0
don't quit your day job
- Skylark0
well its starting to turn out to be a day and night job...
- jox0
Hey Skylark, if you ever come across a script like that - lemme know.
Might come handy :P
- jox0
No - wait. There are scripts like that already = interns.
- Skylark0
Jox: there you go....tobad I dont have one around.