How to Stop Interpolate half way through action?
Ok forum search sucks now. Tags are pointless, doesn't come up with the right thing.
And google links tend to do this:
"Not Found
The requested URL /forums/topic.php was not found on this server."
So I did try find the answer
So I interpolate my Jet... And when it gets shot it resets position but keeps interpolating! lol...
Help please? : )
And google links tend to do this:
"Not Found
The requested URL /forums/topic.php was not found on this server."
So I did try find the answer

So I interpolate my Jet... And when it gets shot it resets position but keeps interpolating! lol...
Help please? : )
Comments
The only way i think you can break is wrapping it in a timer in a rule.
If Jet.Hit = 0
Every 0.5 seconds interpolate .......
Otherwise
If Jet.Hit =1
Interpolate .....
And yes searching sucks big time now!
Also not sure why this is in codemonkeys corner???
If attribute1 = true
And self.alpha>0
Every 0.05 seconds change self alpha to self alpha - 0.05
Otherwise
If self alpha < 1
Every 0.05 seconds change self alpha to self alpha + 0.05
Ok, and please just copy
The discussion number over here and it works great
Calvin
So what I do is this :
constrain game.myatt to self.inter1
interpolate self.inter1 to 100 over 5 seconds
if new rule applies
constrain game.myatt to self.inter2
interpolate self.inter2 to -100 over 1 second
it completely disconnects from the original interpolate!
What would be the most efficient less demanding one on the system?
Thanks heaps!
Still haven't released a game lol...
Did you wait for the progress bar to run through? showed up fine for me. it did take a few minutes of loading though
I never remember to look via the actual GS app.
Question: How would I suit this to interpolate movement? ... Might sound dumb but I tried a few ways and no dice.
I'm to blonde for the other ones... Driving me nuts. And now the GS App search function appears to be dead
Would you say his method is efficient?
For the one actor though, he has 3 constantly working attributes.
Boolean for the when to attack.
Interger for the random timer.
Index for the hit counter.
Is that good or too demanding?
Things that hurt performance are generally;
Constrains
Timers
Spawns
Its like junk food though, too much is bad but like anything in moderation, its fine.
Using loads of timers but that's kinda it... Can't access the Preview for my device at the moment (long story) but will as soon as she's up and running again! Thanks ya'll.
I cannot find "Cancel Interpolate" via GS app. Is there any download link or am I doing something wrong?
Let me see if I can dig up the original
http://www.mediafire.com/?1sdrvi42lzx99p6
Here's a very simple way.
Just destroy the actor with the interpolate movement and spawn an identical actor but without the interpolate behaviour.
Example (click on the moving actor):
http://www.mediafire.com/?ey9174ll5wipn28
I thought it might be a useful and simple little trick for certain situations, but it might not be useful for everyone of course.
I have an actor that throws fruits. It interpolates for 0.75 seconds 20 pixels down, and then interpolates up 20pixels for 0.75 seconds. This is in a rule which is triggered by a REAL attribute (0- false, 1- true).
In interpolate behavior for time I've inserted "0.75*myreal-attribute".
So when myreal-attribute is 0; rule with interpolate is not valid anymore, and interpolate behavior ends.
This is only how to end interpolation, but now there is no problem to override it.