Search found 3 matches
- Fri Jan 30, 2015 12:12 am
- Forum: General
- Topic: Help me please, I'm noob :S
- Replies: 9
- Views: 4374
Re: Help me please, I'm noob :S
Then maybe use 0 instead of -100? This should definitely work. Never mind. I realized what it's the problem! if x > 800 then x = -100 end if y > 600 then y = -100 end if x < -100 then x = 900 end if y < -100 then y = 700 end When x < -100 then it becomes 900, then x > 800 so it's supposed to become...
- Thu Jan 29, 2015 9:07 pm
- Forum: General
- Topic: Help me please, I'm noob :S
- Replies: 9
- Views: 4374
Re: Help me please, I'm noob :S
Oh, that's what I did first and it also didn't work :s
- Thu Jan 29, 2015 5:17 am
- Forum: General
- Topic: Help me please, I'm noob :S
- Replies: 9
- Views: 4374
Help me please, I'm noob :S
I made a square that you can move with the arrows. When it goes out of the screen it's supposed to appear in the other side. It doesn't work when it goes out from the left or up edge. What am I doing wrong? Here's the code: x = 350 y = 250 function love.load() love.graphics.setBackgroundColor( 255, ...