Moveable objects not overlapping or moving other objects?

aaapowaaapow Member Posts: 12
edited November -1 in Working with GS (Mac)
Hello everyone,

I am hoping someone might be able to help me with this problem. I have looked in the forums but can't find a solution. I am trying a drag and drop with boxes. I need both actors to move but when the one that is being moved touches the other it can't take its position or move it. I have put some drawing below to hopefully explain a bit more clearly.
Cheers,
aaapow

image

image

image

image

image

Comments

  • aaapowaaapow Member Posts: 12
    Thanks for posting the video Uptimistik. It is a good one and I will be able to use the lesson. Unfortunately it doesn't provide a solution to my problem if you or anyone else has any other ideas I would love to hear them.
    Cheers
  • old_kipperold_kipper Member Posts: 1,420
    I would do it something like this using the objects coordinates rather than using collision.

    firstly make it possible for only one object to be selected and active. Pretty sure you have done this already. Then have them each return their x and y to game or scene real attributes. Have the constrain to finger rule dependant of the actor not being closer x or y than the sum of half the combined x or y of both actors. If the speed of the moving actor takes it into overlapping the rule for constrain to finger will fall away and when this happens have the actor travel to the minimum allowed distance- if self x < than other actor x + ((self width+other actor width)/2) change attribute self x to other actor x + ((self width+other actor width)/2).

    This will take some work to get the rule exclusions working for x and y greater and less than, but I think it would work.

    I hope it helps

    kipper
  • brendanzhbrendanzh Member Posts: 19
    maybe if you had alot of rules, you still have the "all" selected,

    dno, just a wild guess
  • aaapowaaapow Member Posts: 12
    Old Kipper thanks a lot for your advice. I will try out what you have outlined and see if it works. Really appreciated.
  • old_kipperold_kipper Member Posts: 1,420
    I think you may have to fiddle with the drop from constrain and the pick up to constrain after a drop based on overlap, as I am not sure if it might be better to push the actor out from overlap an extra few pixels so when picked up again if there is slight movement it does not immediately drop again.
Sign In or Register to comment.