Continuos Update With collision

AppsRacKAppsRacK Member Posts: 346
edited November -1 in Working with GS (Mac)
I'm having a bit of trouble figuring out on how to do this. I have an round actor that i want to detect if another actor (probably a long platform) is colliding with it. Checking for collision is easy but checking if the actor is still colliding with the platform is what im having trouble with. I dont know if using magnitude will work as the actor is constantly moving and rotating. I want to check it the actor is colliding and i will unhide a button and ifs not colliding anymore ill hide it again.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    make a boolean attribute called collision set it to false

    when circle colides with platform change attribute collision to true
    then in the otherwise section of that rule change collision to false

    whenever attribute collision is true youll know there overlapping and colliding

    cheers
  • AppsRacKAppsRacK Member Posts: 346
    yes i did that and it will change the attribute to true when it collides but when the platform moves away it wont change back to false.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yes it will if u put change collision to false in the otherwise section of the first rule
  • AppsRacKAppsRacK Member Posts: 346
    Ok i know now whats the problem why it wont detect if its not colliding. I've searched the forum and the reason is actually because im changing the size of the platform constantly by magnitude. I used the debugger method and its stay on false no matter what i collide on it. Thanks anyway John for your time. I guess theres no work around on this.
Sign In or Register to comment.