Actor size changes don't work correctly

DrGlickertDrGlickert Member Posts: 1,135
edited January 2012 in Working with GS (Mac)
I have an actor (the image on the actor are instructions for the level) that starts as a 2 x 2 size in the scene. I have an interpolate: size.width to 300 AND size height to 270 over .4 seconds
I then have a rule that when size width = 300 interpolate size.width to 200 and height to 180 over .1 seconds.
This should give it a cool effect where it grows then comes back to it's normal size.

When the scene starts the actor is full size (200 x 180) and upside down, then interpolates to 2x2 then grows the way that I have coded it. I don't have any functions in the code that shrinks the actor...

Any ideas?

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    You can put a change attribute in the actor so that it is always the correct rotation etc

    Change attribute - self.rotation to blah
    Change Attribute - self.size to blah

    Put these at the top of the actor.

    This might help.

    Bray
  • DrGlickertDrGlickert Member Posts: 1,135
    That didn't work. I started the code exactly how you suggested. Change attributes self.width to 2 and self.height to 2 and the actor still starts really large, interpolates (or shrinks) to the 2x2 size and then goes into the interpolate the way that I want it to.
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Have you tried deleting the actors off the screen - then replacing them?
  • DrGlickertDrGlickert Member Posts: 1,135
    Just deleted the actor, then replaced it. That does not fix the issue.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    the rule that is when size width = 300

    try changing it to when size width is greater then or = to 300
  • DrGlickertDrGlickert Member Posts: 1,135
    That does not work either. The actor still starts upside down and really large, then shrinks to 2 x 2, then does the interpolate functions correctly as I want it to.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    do you have any rules in the otherwise section you could have missed thats causing it?

    If you want you can send the project over and ill take a look. Its hard to help fix it just by guessing
  • DrGlickertDrGlickert Member Posts: 1,135
    No, I just checked. There are no "otherwise" in any of the rules on the actor.

    I just don't understand why it starts upside down. This is super weird.
Sign In or Register to comment.