Search found 2 matches
- Wed Dec 07, 2011 2:39 pm
- Forum: General
- Topic: Restrict Rectangle Movement
- Replies: 3
- Views: 2292
Re: Restrict Rectangle Movement
Thanks a lot, guys. It's great to be pointed in the right direction, because there's a lot to learn. I tried doing it in love.physics, but I think that was quite a bit too complicated for something this rudimentary.
- Wed Dec 07, 2011 12:07 am
- Forum: General
- Topic: Restrict Rectangle Movement
- Replies: 3
- Views: 2292
Restrict Rectangle Movement
Hey, I'm really new to LOVE and I just don't know how to restrict a simple key-controlled rectangle to the screen. I don't want it to pass the edges of the screen. There has to be an unbelievably simple way of doing this, but I couldn't find it in the API or the forums. Maybe I wasn't looking in the...