Wall Collision not working

CaptMediaCaptMedia Member Posts: 60
edited April 2012 in Working with GS (Mac)
Hi, I am having a problem with an object colliding with another object. I have one object pushing another object and when the second object reaches the end of the screen I would like it to stop and not go any further, but when I try to use a collide behavior the object still goes through the wall. The actor pushing the object is doing so through a "move to" behavior (if this is relevant). I would use min/max value but I am going to add actors in the screen that this object needs to collide with. (Moveable is unchecked on the wall) Any ideas? Thanks

Answers

  • 921creative921creative Member, PRO Posts: 140
    Maybe an obvious question, but do you have the Collide behavior in the wall's rules as well as the object's rules?
  • CaptMediaCaptMedia Member Posts: 60
    edited April 2012
    Thanks for the thought, but yes I do have the behavior on each. Any other ideas?
  • jckmcgrawjckmcgraw Member Posts: 647
    Try deleting the collision rules and deleting the wall and putting them back in.
  • CaptMediaCaptMedia Member Posts: 60
    Thanks @jckmcgraw, I tried it but it did not work either. Here's a video of what happens when I the two objects collide:

    https://www.dropbox.com/s/5zip53eld6i0rmk/Screen Recording.mov

    Any other ideas?
  • jckmcgrawjckmcgraw Member Posts: 647
    @captmedia

    I don't really know what else to say. Could you post your project so I could take a look at what specifically is going on?
  • CaptMediaCaptMedia Member Posts: 60
    @jckmcgraw do you have an email I could send the project to?
  • jckmcgrawjckmcgraw Member Posts: 647
    @CaptMedia

    jckmcgraw(at)gmail(dot)com
  • CaptMediaCaptMedia Member Posts: 60
    @jckmcgraw just sent the email, thanks for your help!
  • CaptMediaCaptMedia Member Posts: 60
    Just an update, I am still looking for a solution to the problem. If you watch the video below you will notice there is a main actor and on all four sides of the main actor are other constrained actors that move the circle when they collide. I believe the constrain of these four actors around the main actor is the issue, it forces the circle to move even though it collides with the wall. To move the position of the main actor I am using a change attribute so this should not be a problem, but the constrain on the other four actors may be. Anyone have any ideas? I having trying for almost a WEEK to get this to work. Thanks in advance

    https://www.dropbox.com/s/5zip53eld6i0rmk/Screen Recording.mov
  • amullaamulla Member Posts: 1
    edited August 2013
    I was also having this problem. I have tried the same thing with a windows version after watching the following video on youtube.



    I had also tried it on the mac version and it was the same.

    SOLUTION!
    go to the wall sprite and under the physics attributes untick movable.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    make sure the objects are in the same layer.
Sign In or Register to comment.