Change Moveable on touch

fuzzeemicfuzzeemic Member Posts: 47
edited November -1 in Working with GS (Mac)
I'm having problems trying to get an actor to respond to a touch.
Actor is set to "Movable" (no tick) FALSE
I would like to touch the actor and have "Movable" set to TRUE so the acceleration applied will work.

I'm trying:
Actor receives event->touch>pressed
- Change Attribute, self.Physics.Moveable To true

This doesn't seem to work. I know the touch pressed works as I can adjust it's height/width this way.

Is it possible to change the movable flag in this way?

Comments

  • fuzzeemicfuzzeemic Member Posts: 47
    Ahh!
    Thanks again :-)
    I have another idea how to tackle it.

    You are obviously quite experienced with GS nuances!
  • davesfarmdavesfarm Member Posts: 14
    Hey Fuzzemic, how did you accomplish this?

    I want to do exactly this, have a pinned physics object, that upon touch, would un-pin it... I know there has to be a way, i just havent figured it out yet :)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    davesfarm said:
    Hey Fuzzemic, how did you accomplish this?

    I want to do exactly this, have a pinned physics object, that upon touch, would un-pin it... I know there has to be a way, i just havent figured it out yet :)

    Have a rule in the actor when touch is pressed constrain attribute self position x to devices mouse position x and then do the same for the y
Sign In or Register to comment.