Actor moves when player touches it ?

JamieOneilJamieOneil Member Posts: 877
edited November -1 in Working with GS (Mac)
Okay so my app that im working on, you can click and drag things, but to do that you must make it movable and not fixed roation because you can rotate it, but when you click the play button the player spawns and lands on the actor but the actor moves ? how do i fix this ?

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    i have the same issue in my project but in reverse.

    I have a bunch of blocks which move and bounce after an explosion .. but I wanted to move an place objects and the bomb without them being hit during that process. Physics of an actor can't be changed in gameplay from what I understand so I had to create two sets of actors one with their physics off (these are onscreen for me whilst I move objects) and then when I click detonate I spawn the second set of actors in their place, the second set has the physics on. (And of course I destroy the first set).

    It works but would love to know a better way.
  • davesfarmdavesfarm Member Posts: 14
    I think were talkinga bout the same thing.. I tried to do this with one actor and, thought I know it HAS to be possible.. I havent figured out why this hasnt worked... or what will work right.

    basically I created a constrain attribute position X and Y behavior, that when touched, turns the rule to false.

    this makes it so, an object ignores physics until you touch it.

    however it doesn't work right, because the order things are processed, first the physics is prosthesed in GS then the behaviors... so every frame, it drops down one frame.

    so basically the rule just constrains the object in space making it slowly fall...

    what is a better way to get this to work, or is there a way to get it to read the rule before the physics?

    I just ant an object to stay still, until you touch it.. which is what I think you guys are looking for too heh.
Sign In or Register to comment.