What I want to have happen is to use setInterval and have it wait for, say 2 seconds. However, when I use this, it doesn’t work at all.
setInterval = (moveMe, 2000);
I have tried many ways of writing this and putting it in different places, but still nothing. Could it be because I am using the onEnterFrame to execute the function?
I have looked around the forums for a long time to try to solve my problem, but I can’t find how to get setInterval to work with my script.
Just the specific script. Right now, the ocject will randomly move, however it doesn’t reach its destination. It just wobbles back and forth because there isn’t any time to move before it picks a new random number and destination. I want to give it about two seconds to travel along before we repick the destination.
Yeah I just finished watching the game. Dominant force! Hey, it seems this thread has gotten off track though a little, can anyone help me with my setInterval problem?
OMG guys I’m sorry. ****it I’m way too tired. I have been periodically checking back to see if someone had replied when Lost had awhile back and I had somehow looked over his post! Then I asked if we could get the thread back on track…wow. I have got to get some sleep. See you all in the morning.
You are right Lost, the clip is delayed for 2 seconds, and then it does the random motion that it usually does. I don’t really care about the delay in the beginning, if possible that shouldn’t do that. It should pick the destination, wait 2 seconds, and then repick another destination. (over and over again in this loop) I will work more on it tomorrow. Let me know if you find anything.