Working with moveable actors

metz044metz044 Member Posts: 9
edited November -1 in Working with GS (Mac)
Is there anyone to make an actor moveable by the player but not moveable whenever another actor comes in contact with it during gameplay. For example, If I wanted to user to be able to move a platform (change the angle) but whenever the actor (character in the game) jumps on the platform it always flys off the screen.

TLDR How do I make an actor moveable by the player but not moveable by another actor coming in contact with it during gameplay?

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    Set the collisions the way you want them. Also, you can utilize tags and give certain objects (say; moveable objects) a tag that's collidable with the player.

    is this what you're asking?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    if you have touch rules for the player to move the platform you can do it like this.

    Have 2 real attributes and 1 interger

    name the 2 real platformx and platformy, and the interger moveplatform.

    In the platform constrain platform x to self position x, and constrain platform y to self position y.

    Have a rule when touch is pressed change attribute moveplatform to 1

    Have a rule when touch is released change attribute moveplatform to 0

    Have a rule when moveplatform=0 constrain self position x to platformx and constrain self position y to platform y

    And have a rule when attribute moveplatform=1 constrain attribute self position x to mouse position x and constrain self position y to mouse position y
  • metz044metz044 Member Posts: 9
    Thank you!
Sign In or Register to comment.