Using move to instead of interpolate?
Hey,
I want to use move to instead of interpolate. I know interpolate is amazing but I want
to use move to.
So I want an actor going up and down so I said:
move to y position 200
rule:when self position y = 200
move to y position 85
But the actor stops at 200 and does not go down
/
Thanks for help
I want to use move to instead of interpolate. I know interpolate is amazing but I want
to use move to.
So I want an actor going up and down so I said:
move to y position 200
rule:when self position y = 200
move to y position 85
But the actor stops at 200 and does not go down

Thanks for help
Comments
Start your actor at Y position 85.
Rule: When attribute self.positionY = 85
--Interpolate self.positionY to 200
Rule: When attribute self.positionY = 200
--Interpolate self.positionY to 85
This should give you the up and down movement you're looking for.
________________________________
【ツ】iPhone Icon Pack (compatible with DBA Icon Creator) 【ツ】 - 【ツ】Graphic Pack【ツ】
Free GS demos: High score simple and advanced; Game Center; App Rating System; Custom Font Score and Countdown; Advanced Snap to Grid
First I had exactly your rules but I don't want them this time!!!!!!
And it is the only behavior in my game (with new version) that fails....So I want to eliminate this bug..
thx
----------------------------------------------
http://davidgriffinapps.co.uk/
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
________________________________
【ツ】iPhone Icon Pack (compatible with DBA Icon Creator) 【ツ】 - 【ツ】Graphic Pack【ツ】
Free GS demos: High score simple and advanced; Game Center; App Rating System; Custom Font Score and Countdown; Advanced Snap to Grid
I want him to move from 85 to 250.
Still doesn't work...
Is there no way to solve this problem... I want to publish my game
thx
@Alex If you'red doing something simple you might be better off using the change attribute behaviour which, in general, is better for performance and GS updates won't mess you up.
So:
when self y position is equal or less than 85
change self linear velocity y to 100 (or whatever speed you want)
when self y position is equal to or more than 200
change self linear velocity y to -100
But just one problem, when I tick off moveable the actor can't move as in interpolate
I want an other actor to stand on it
thx
@Honey Tribe. Look at my Demos. interpolate cannot be Stopped but you can override it to make it appear as such.
There is the easy solution of putting a rule inside of a timer that is "Every 0.1 seconds" or something. Then, inside the rule just put a change atribute self.position.y to self.position.y +1
This isn't the best solution obviously, but it might work in your situation. Also, it can be stopped at any time if you put the whole thing in another rule.
Hope that helps,
-Thomas
It seems like it's dependent on what version of GameSalad you used when creating the original file. At least to me it does. I personally don't have interpolate issues, that all works as scripted, but I have timer issues where they just don't work at all, for anything.