Hey everyone ,
I'm making some complicated stuff with lerp and such and I got to a wall ...
<img src="http://dl.dropbox.com/u/89532891/Others/Example.png" border="0" />
In the pic you just saw ... I'm spawning some Solidblocks , and assigning them some variables for a lerp event I didn't list in the pic ...
But it's basically ,
If Lerp = 1 , then lerp to targetX and targetY
Theorically it should work ...
But here , it doesn't , all because of the wait 0 seconds
Let me explain , here the wait 0 seconds waits until the object is created successfully but also breaks the variable events because the loop produces in one tick and spawning the objects takes 1 tick , meaning curX and CurY aren't assigned and they don't change (0,0) (the loop is finished just at the same tick as the object is successfully created) and removing it also breaks the variable events because there's no picked object to assign a variable to ...
What does happen ?
The solid block lerps to 0,0 and stop
I'm in a sandwitch , ye know ...
Halp ! ;(