So, I was making a new game called exit way out, where the cube has to get the key and unlock the doors. I was working on the player controls for my game, but I want it to bounce back smoothly when it hits the edge like this:
Here’s the link:
Exit way out by cybercube | Snap! Build Your Own Blocks
So… why doesn’t IF ON EDGE BOUNCE solve your problem?
They want it to be smooth I think, like some extra speed when hitting (adding to velocity instead of just flipping direction. like if hit edge, change velocity which then some slowing coede would happen
I want it to move smoothly like quadratic in-and-out not linear like the
if on edge, bounce
block.
You can copy and edit the definition of that block to make your own customizations, like changing the velocity ibstead of direction
Is there an <If touching [edge]?> sensing block? Cuz that COULD work in an [If<_>-Then] block.
in some area when you move the player it won’t work.
can you elaborate? which specific area?
up, down, and right


