Cant change "Movable" attribute

Field305Field305 Member Posts: 29
edited November -1 in Working with GS (Mac)
Hi all, I am making a platformer game and have run into a small problem. So here whats going on.
I have a simple actor that moves back and forth (like a turtle in Mario Bros.). When the actor is "not movable" he acts correctly, but wont move back and forth. I jump on the actor and he falls straight down off the screen and my main character bounces off him.

When I make the character "movable" under the Physics tab, it acts differently. The character moves back and forth, but when I jump on it, its as if my main character pushes the actor off screen and the actor just bounces around randomly.

So my thought is to make the character not "movable" when the main character jumps on him. I went ahead and made a rule for the actor not to move as soon as he touches the main character on the Y axis. But I cant seem to control the "movable" attribute. Every time I try to change the attribute it seems to not work. It seems that whatever I have selected in the attributes cannot be changed. Is there a way around this. Any help would be greatly appreciated. THANKS!

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    You can't change physics attributes during gameplay unfortunately.
  • patrick1010patrick1010 Member, PRO Posts: 4
    I don't know if you are still working on this. But here's how I did it

    1. Make a copy of the movable actor.
    2. So in your case you end up with 2 actors now "Turtle_move" and "Turtle_nomove".
    3. Keep "Turtle_move" set to movable but uncheck the movable option for "Turtle_nomove"
    4. Now you just make a rule for when action occurs that you want to change the physical move attribute but instead of changing the attribute destroy "Turtle_move" and spawn "Turtle_nomove" in the same place.

    If you want to make him moveable again just make the the opposite rule inside "Turtle_nomove" to destroy and spawn the "Turtle_move" back.
Sign In or Register to comment.