Making an actor non-moveable

RodericRoderic Member Posts: 145
edited November -1 in Working with GS (Mac)
I have an actor that I interpolate from small in size to fill the screen. At that point I want to make it non-moveable. I added a change attribute at the end of the rule to change self.physics.moveable to false. But it doesn't work. Is there something else I need to do to make the actor non-moveable?

Thanks!

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You have to un check moveable in the prototype. that is one attribute that cannot be changed in game. If you must have it movable until that point then after your size increase you can add a constrain to the actors x and y to hold it to one position.

    ___________________________________________________________________________________
    TEMPLATES AND PROJECT HELP BY TENRDRMER. CLICK HERE!!!

    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • SkyMapleSkyMaple Member Posts: 817
    If your just increasing the size it doesn't need to be moveable, just uncheck it.
  • RodericRoderic Member Posts: 145
    Ok, so if I constrain self.position.x to 512 and self.position.y to 384, (ipad center) that should hold it still? I tried and it didn't work. I also tried constraining to the scene.background.position.x and .y but that didn't work either. I guess once an actor is moveable, it appears you cannot make him non-moveable.

    If you have any more suggestions let me know.

    Thanks.
  • RodericRoderic Member Posts: 145
    SkyMaple, I want it to be moveable from the start. I'm making a template for the user to create their own scenes. The user chooses from a few different icon size scenes and drags it onto the play area where they will add other items. The other items will be moveable, I just want the scene to stop moving. I appreciate your suggestion, and may have to rethink doing it how you suggest.
    Thanks.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Constraining will hold it in place if you have done the rules correctly. You can also throw in a constrain on the velocities to 0 but really that should not be needed.
Sign In or Register to comment.