- Home /
 
 
               Question by 
               dotrung591 · Jul 16, 2018 at 11:55 AM · 
                movementmovefalling  
              
 
              PROBLEM need Fix!
I have a problem with the left side of the canvas with the canvas button( for Android game) and with a wall like this: set trigger = event trigger pointer down link to LEFT() and pointer up link to IDLE() with code:
public void LEFT () { if (isAlive) { r2.velocity = new Vector2 (-speed, r2.velocity.y); }
}
public void IDLE () { r2.velocity = new Vector2 (0, r2.velocity.y); } -----------------
Move normally, but when holding down the button , hit the wall like that and fall out of the wall as shown in pic 0 (hold down the button). I want it to fall as shown in pic 1 while holding down the button. I hope everyone will help me solve this problem :(
 
                 
                untitled-1.png 
                (146.9 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Implementing Counter-Movement 0 Answers
Player keeps going through the floor when crouching. 0 Answers
3rd person camera controls 3 Answers
How to keep playing from falling off edge with placeable tiles 0 Answers
Smooth Character Movement 1 Answer