Weird issue.... with interpolate and jumping....
Hey guys I'm not sure how to explain this so I will try the best I can. I will try to explain what I have and hopefully someone will have some idea what is going on. I made a video so that maybe you guys could help me better....
![](https://img.youtube.com/vi/JU80yt__6W8/0.jpg)
I have a platform that my actor jumps on multiple times. The actor that jumps is dependent on this platform because it changes attributes on the jumping actor so it knows when it's ok to jump. Everything works fine with my scene. The actor is able to move around on top of the platform and jump the way I intended.
The problem occurs when I put an interpolate attribute on the platform to slowly change the width of the platform. While the platform does slowly shrink in width the way I want but my actor now refuses to jump. The actor can still move from left to right on top of the platform, but the attribute that makes the actor jump never activates. When I go back into the platform and turn off the interpolate, the actor can then jump again.
Why would an interpolate attribute affect another actor and cause another attribute not to work. I also tried instead of interpolate change size.. and it still caused the actor not to jump.
Any ideas?
Thanks!
Rob
![](https://img.youtube.com/vi/JU80yt__6W8/0.jpg)
I have a platform that my actor jumps on multiple times. The actor that jumps is dependent on this platform because it changes attributes on the jumping actor so it knows when it's ok to jump. Everything works fine with my scene. The actor is able to move around on top of the platform and jump the way I intended.
The problem occurs when I put an interpolate attribute on the platform to slowly change the width of the platform. While the platform does slowly shrink in width the way I want but my actor now refuses to jump. The actor can still move from left to right on top of the platform, but the attribute that makes the actor jump never activates. When I go back into the platform and turn off the interpolate, the actor can then jump again.
Why would an interpolate attribute affect another actor and cause another attribute not to work. I also tried instead of interpolate change size.. and it still caused the actor not to jump.
Any ideas?
Thanks!
Rob
Comments
What you can do is set the platform to change it's size based on the game.time
Or...Since it's only one, you could get away with using a regular timer behavior
Whenever the actor is touching the platform, have a rule something like this in the platform
When attribute.main actor is touching platform
Timer
every 0.1 sec
change attribute self.size.width to self.size.width+1 (or minus)