0 Favourites

water bobbing cheat technique.

  • I have a frog, when he falls into the water I want him to float back to the top and bob about until the player jumps back out.

    I can't find anything similar to this apart from someone who wrote 'use an invisible solid object to spring back and simulate a bobbing effect'. I tried that but after I make it solid and apply physics it obviously just drops.

    Then I add a solid block both above and below the invisible 'platform' to prevent the platform from dropping too far then I think it would be a good idea to apply a constant force to the platform, pushing it upwards against the upper block.

    In theory we would have the platform sink when the player lands on it, hit the bottom limit at which point the momentum of the fall is lost and the upwards force applied pushes the player back to the surface until the platform hits the upper limit.

    What actually happens is the platform drops and hits the lower limit, stopping dead. If I increase the upwards force then the frog fails to impart any force upon landing. AND no matter how much force I apply upwards it only gets about halfway up to the upper limit!

    I am surprised - this system has joints and the like but it doesn't have a spring? From what I can see anyway, I may have totally missed it. I hope so as I thought this would be a very simple thing to set up!

    Thanks for reading and any advice would be appreciated.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
29 1,194
OrionUK's avatar
OrionUK
Unread hot topic
0 Favourites
Fluoride, water and teeth
33 3,284
Silent Cacophony's avatar
Silent Cacophony
Unread hot topic
33 7,747
maxlive2010's avatar
maxlive2010