Trouble with interpolate!

ozboybrianozboybrian PRO Posts: 2,102
edited February 2012 in Working with GS (Mac)
I have arrows in my game, and I have the arrow interpolating size to express difference to the player.
When it hits it's target or a certain point I want to destroy the arrow or have it change it's position on the scene.

But because of interpolate it doesn't do anything.
I've checked it on all rules, turned everything off except for interpolate and it only doesn't work when interpolate is on.

Is this a bug or does GS hate me? More then I already thought anyway ;)

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    edited February 2012
    you can't stop an interpolate

    the only way to stop an interpolate is using another interpolate

    only you can defeat yourself
  • ozboybrianozboybrian PRO Posts: 2,102
    Yeah but it's not even picking up collisions.
  • calvin9403calvin9403 Member Posts: 3,186
    then use an interpolate to stop it
  • ozboybrianozboybrian PRO Posts: 2,102
    Yeah but I need to when collide with actor do whatever.. In older version of GS I could change opacity etc.
    It won't even change an integer when overlapping and overlapping on this is crucial.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Collisions dont occur when interpolating ... interpolate was one of the best behaviours GS bought us!

    If you want collisions to occur you'll need to wrap it in a timer
  • calvin9403calvin9403 Member Posts: 3,186
    interpolate was one of the best behaviours GS bought us!

    can not agree more beefy, it can replace a bunch of rules out there!
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    Interpolate for president! :-) (With Constrain as his sidekick...)


    ----------------------------------------------
    http://davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • ozboybrianozboybrian PRO Posts: 2,102
    I don't want it to collide so that they bump each other.. I just want it to "When over laps or collides with X Change Interger to 1"
    But won't do that... so lame! D=
  • MotherHooseMotherHoose Member Posts: 2,456
    well do you know the X value? is it stored in an accessible attribute?

    Rule: when
    Attribute: self.Position.X ≤ end X or the attribute for X that you want to overlap
    --Interpolate the President
    Otherwise:
    change or Destroy
    ===
    may need another condition in the rule

    @};- MH
  • UtopianGamesUtopianGames Member Posts: 5,692
    edited February 2012
    Brian,

    You need to make sure you have movable on at least 1 of the actors for a collide to register.

    I just done some interpolate tests and you can change integers, alphas etc etc when 2 actors collide but remember 1 of them has to have movable checked on:)



    Darren.

    GS Templates
    GS Tools
    Art Packs
    Music Packs
  • ozboybrianozboybrian PRO Posts: 2,102
    edited February 2012
    There are 4 moving points though :/

    Edit - Darren, ok mate I will have a look at that! Thank you.
  • ozboybrianozboybrian PRO Posts: 2,102
    Thanks for the video mate! Know you're very busy so I appreciate that! Actually all my actors are set as moveable but still no dice.

    The main actor is interpolating it's size, but it's moving via velocity the actor it collides with is also moving with velocity.
    But yeah the only interpolation i'm using is something that's interpolating the width and height of the actor to zero.

    I would post a video, however i'm worried about lurkers jumping on the idea because I think it's quite original.
    Will send you the file if you want to have a look and we can share the results here.

    Thanks mate!
  • ozboybrianozboybrian PRO Posts: 2,102
    Ahhhh... I learn something knew everyday. I might get laughed at for this.

    But I changed the collide rule to the non interpolating actor and the rule works fine now.
    (I never knew that so I guess I had to learn somehow)

    But I also did not know about the moveable thing so thanks Darren! And everyone who put in some tips REALLY appreciate it. Learned a lot.
    Ok, now you may point and laugh.

    Thanks :D
  • UtopianGamesUtopianGames Member Posts: 5,692
    edited February 2012
    Have you tried a little used behavior called Change Size and set it to -1, increase 1 for faster reduction.

    Not sure it will work in your case but worth a try.

    EDIT: Glad you worked it out:) and no one is laughing you'd be surprised how many times I'm sat here scratching my head:P..umm had a thought i could have nits:) need to get that one checked out lol.

    Darren.

  • ozboybrianozboybrian PRO Posts: 2,102
    Actually still got a problem. I want the interpolating actor to disappear :/

    Nope never heard of that method?
  • ozboybrianozboybrian PRO Posts: 2,102
    Would be so good if we could work with it more.

    What if I constraint a Shadow actor to it and write rules inside that one insteaD?
Sign In or Register to comment.