Anyone know how to stop "touch press" actors from moving through solid objects?

zane1zane1 Member Posts: 15
edited November -1 in Working with GS (Mac)
I keep having the same problem with my actors, using touch when pressed movement controls.

When they are touched, to move/drag around, the actors can simply "float" through any solid objects they should bounce off of.

When they are not pressed, you can't push them through the objects (like with another actor) but as soon as they are touch/pressed, "solid" rules no longer apply!

can anyone tell me how to fix this so even when dragging actors with touch they can't move through solid objects?

thanks!

Comments

  • zane1zane1 Member Posts: 15
    hi tshirtbooth,
    this is good to know and will come in handy (for things like drag/drop/snap techniques)

    but not exactly what I need. I still want to be able to move the actor around with touch and be able to run into solid walls, like if you were guiding an actor through a maze from an overhead view, you would drag the actor back and forth in every direction but you'd have to have solid walls to actually make the maze plausible, you know what I mean?

    thats what I need to do, if there is a way?

    thanks!
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    in the new section of GS creator search for "fake constrain". You may need to tweak it a bit but it is about the only solution as constrain will not work for what you are trying to do.
  • zane1zane1 Member Posts: 15
    @scitunes
    awesome! this is exactly what i was looking for.
    tweeked: lowered restitution on all objects to 0, no more bounce, just smooooooth glide. Also replace acclerate towards with move to, changes all the "mouse" instances to "touch", works great! thank you!

    side question, when i place mulitple actors in the scene and the collide with each other the mag makes the one bumped fly off the screen! do you know how I can have the one's that are not being press touched to stay still untill they are?

    thanks!
  • zane1zane1 Member Posts: 15
    zane1 said:
    @scitunes
    awesome! this is exactly what i was looking for.
    tweeked: lowered restitution on all objects to 0, no more bounce, just smooooooth glide. Also replace acclerate towards with move to, changes all the "mouse" instances to "touch", works great! thank you!

    side question, when i place mulitple actors in the scene and the collide with each other the mag makes the one bumped fly off the screen! do you know how I can have the one's that are not being press touched to stay still untill they are? (but without being able to occupy the same space at the same time?

    thanks!

Sign In or Register to comment.