4.5.9 metroidvania SWIMMING! almost complete

ok so,
i have an unlockable swimming variable in my game and its nearly finished but iv got 1 strange problem with the gravity....
i have a tile that changes my action step to swimming and then my physics sorts it out and goes to swim gravity BUT when i jump in and cross my swim tile for the first time it looks like gravity is sped up to the max and i fall super fast to the ground. then the swim mech works perfectly after iv touched a solid tile. if i just drop in on the ledge and then move ahead the gravity is perfect. its driving me crazy!
at this point i want to see if anyone has encountered anything similar?
View: https://www.youtube.com/watch?v=fhOBGmwpi_M
 

dale_coop

Moderator
Staff member
you should try to alter the gravity engine when needed (when a variable is set "on"... maybe when your player is in those water tiles, for example)
Check that topic:
 
thanks @dale_coop i did use that one to get to where i am. what im looking through now is the dohandlephysics script to see why my adaptation is ignored on collison with the tile. but its very unusual that i can tap A and then it will do the correct physics, or if i touch a solid tile it will go to correct physics...
both my tile script and physics are both very simple and lined up.
 
Top Bottom