**Collision Bug with Lineary Velocity X movement**

Hey guys,

I could really use some help with this. If you watch the video it is explained and demonstrated in it. I have turned off all other rules involved or in these actors and yet it still happens. I've had display texts showing each of the booleans involved and each of them are correctly triggered and happen as they should. I'm not sure if it is because he was once collided with the building and it being turned off the collision still remains until you move away from the building or what.

Any solution or work around would be greatly appreciated. Thanks :)

Comments

  • FallacyStudiosFallacyStudios Member Posts: 970
    Anyone have any suggestions at all?
  • contrasthallcontrasthall Member Posts: 131
    i believe you need a stronger release system, your jump and up /overlap rules work fine as is for climbing up a background building but it doesnt seem that you have a strong rule set for release like if u had "down and b pressed set connect to building to false" may work but if ur asking it about overlapping ground it kind of never leaves the overlap building rule either so its in limbo between those rules....hope that helps but i may have missunderstood your rule for getting back down
  • FallacyStudiosFallacyStudios Member Posts: 970
    @contrasthall

    Yea I'll look into cleaning up those rules to get a cleaner connect and release than that. If you have any suggestions or ideas to make it more neat I'm definitely all ears.

    As of right now there are a couple ways for a release. One is jumping while connected to the building it will release and send your character back away from the building. The other is if you climb back down and connect with the floor it sets all of the connection attributes back to false. Then of course just jumping off the top of the building works as well.
  • contrasthallcontrasthall Member Posts: 131
    beyond just releasing from jump if you want to keep the down arrow only system to return to streets try storing his y position inside the .2 seconds/connect and then set a rule in main actor or in down button either one depending on which works best for your game and its attributes do a....

    if on building true and down is pressed and y<originaly then set all the building connection attributes to false so he can continue on with his day walking forward..may not work that easy and need some tinkering but an idea.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    It maybe worth checking this template out to see how Darren achieved it. He's always got impeccable code;

    http://www.deepblueapps.com/ladders-template/

    Obviously the ladders in that would be your buildings
  • FallacyStudiosFallacyStudios Member Posts: 970
    @contrasthall Thanks I'll give that a try, and @beefy_clyro I'll check that one out as well.

    I post my results if one of the methods works or if I can't get either working properly.
  • FallacyStudiosFallacyStudios Member Posts: 970
    @contrasthall Ok so after going through and simplifying it like you suggested I did get it much neater. Basically I had alot of previously used climbing code that I used on the game earlier and I had been changing it and just modifying that code to fit the new setup. After going through I was able to get it much more simplified and it works correctly now.

    Basically I made a simply rule within the character that when jumping and up is pressed On Building is turned to true. Another rule in the same actor says if Any On Building or Top of Building is True collide with building. This gets him to immediately shift over to the side of the building and be attatched. Then in the Building Actor I just had to set up a simple rule that if he is facing the wrong direction while > or < a certain side of the buildings X than he would face the correct direction.

    As for the jump down it was simply Down pressed and Jump Button pressed On Building switches to false.

    Once again thanks for all the help to you and beefy. Thanks :)
  • contrasthallcontrasthall Member Posts: 131
    awesome, any other problems ill be glad to help in future.
Sign In or Register to comment.