 tuxthesofa Registered User |
Quote
|
| 2024-01-10 17:17:33 |
|
ok, so i finished a short game for a school jam (mentioned it in my car thread), but i needed to work around some issues, mainly this one. so i made a gate and when clicked on button it was supposed to move/entirely delete itself. i could walk trough the area where the gate was previously located. but when i finished the game and started testing, suddenly, the area where the gate moved from was being blocked like a invisbile wall. this problem has gotten on other levels too. can someone help cuz i want to make a more refined version of the game
|
 Guest Guest |
Quote
|
| 2024-01-10 20:46:01 |
|
I don't recall if there is a default action for this or not, but if you're using physics, then you need to call this function from an Execute Java Script action right after you delete the node:
ccbUpdatePhysicsGeometry();
Just copy and paste the line into the Execute Java Script action and make sure you include the semicolon. This should update the collision so the "invisible wall" disappears. Note: you only need to do this because you are using physics.
|