- Home /
 
               Question by 
               raspberry_heaven · Feb 27, 2018 at 11:32 AM · 
                unity 5uiunity 2d  
              
 
              Image as boundary

Hello, I'm currently making a shmup game and I'm stuck on this...
How can I use this image frame as a boundary/restriction for player's movement?
 
                 
                ui-bg-copy.png 
                (109.2 kB) 
               
 
              
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by geganadiradze · Feb 27, 2018 at 11:54 AM
I'd create four static rectangle colliders around this image, then attach rigidbody and collider to player as well.
This is how they achieve that in Unity's UFO game tutorial
Your answer
 
 
             Follow this Question
Related Questions
Screen scaling causing text to be outside button 0 Answers
How to shrink text size 1 Answer
All UI buttons appear and stack on top of each other. 1 Answer
Gunfire Sound Gets Cut Off When I Release the Aim Button. Help? 2 Answers
How do i prevent the player from dragging a ui element off screen? 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                