Weird issue.... with interpolate and jumping....

PixelPunPixelPun Member Posts: 324
edited September 2012 in Working with GS (Mac)
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....



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

  • PixelPunPixelPun Member Posts: 324
    So I guess this just will not work? or its broken?
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    I don't think the jump will register while the interpolate is going on. If it's continuous, it wont interact with anything until it's finished with it's interpolation.

    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)
  • PixelPunPixelPun Member Posts: 324
    @slickzero yeah I have rebuilt this scene a few times and tried to break it down to the most basic elements.. and your right the jump will not register at all while interpolate is happening. I'm going to try out your method see what happens! Thanks!
  • PixelPunPixelPun Member Posts: 324
    @slickzero that seemed to do the trick....yay :) thanks!
Sign In or Register to comment.