Interrupting interpolate....

Hi,
I was wondering if anyone else has had this issue. I am trying to recycle actors in my scene and have one that interpolates across the screen in a linear fashion that when reduced to 0 life needs to move off screen. The problem is that it does not. I currently have:
Gravity rule: Acceleration down
Bounce rule: Acceleration up (actor bounces across screen)
Move Rule: When self.pos.X < 0 interpolate self.pos.X to 510
Shoot rule: When actor posX is less than 500 shoot
Die Rule: When self.life = or is less than 0 change attribute self.pos.x to 510
Detect Cycle: When Random1-100 is > 80 and < 100 and self.pos.x is = 510 and game.difficulty > 1 change self.position to -25
Surely the above should work? I have it on other actors that move into the screen but not all the way across but that can't be the issue can it?
Thanks for any help
LBG
I was wondering if anyone else has had this issue. I am trying to recycle actors in my scene and have one that interpolates across the screen in a linear fashion that when reduced to 0 life needs to move off screen. The problem is that it does not. I currently have:
Gravity rule: Acceleration down
Bounce rule: Acceleration up (actor bounces across screen)
Move Rule: When self.pos.X < 0 interpolate self.pos.X to 510
Shoot rule: When actor posX is less than 500 shoot
Die Rule: When self.life = or is less than 0 change attribute self.pos.x to 510
Detect Cycle: When Random1-100 is > 80 and < 100 and self.pos.x is = 510 and game.difficulty > 1 change self.position to -25
Surely the above should work? I have it on other actors that move into the screen but not all the way across but that can't be the issue can it?
Thanks for any help
LBG
Comments
----------------------------------------------
http://davidgriffinapps.co.uk/
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Check out my demos http://gamesalad.com/p/tenrdrmer/games
They is a scene preview demo that interrupts interpolate as well as a cancel interpolate demo. Its more trickery to make it seem interrupted but it works very nicely.
Those demos are still on the old online publishing so I think you will have to search them inside GameSalad to actually download them.
Cheers
LBG
Bump:
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps