Search found 15 matches
- Fri Dec 19, 2014 10:16 pm
- Forum: Support and Development
- Topic: How to make an image constantly scroll?
- Replies: 6
- Views: 6394
Re: How to make an image constantly scroll?
There are two simple solutions: First, when the image moves out of the screen, then lets it jump back. For example you have a screen of size 800x600 and the image has exactly the same size. Also you have scrolling only in horizontal direction. Then you need to draw the image twice, because otherwis...
- Fri Dec 19, 2014 7:26 pm
- Forum: Support and Development
- Topic: How to make an image constantly scroll?
- Replies: 6
- Views: 6394
How to make an image constantly scroll?
Hey everyone, I am a bit of a newbie when it comes to Lua and Love2D, and I have decided to try to make a small game with it. I am trying to make an image scroll infinitely over the screen, but I can only get it to scroll once, and then it disappears. What I want is a starfield that basically flies ...
- Mon Dec 30, 2013 6:01 pm
- Forum: Support and Development
- Topic: Help - Keep an image rotating
- Replies: 6
- Views: 1796
Re: Help - Keep an image rotating
Ahh yeah, I got confused. Ill change it nowmicha wrote:What you have there is the angle, so better call it "angle" instead of "originX"
- Mon Dec 30, 2013 4:30 pm
- Forum: Support and Development
- Topic: Help - Keep an image rotating
- Replies: 6
- Views: 1796
Re: Help - Keep an image rotating
Read the wiki article for love.graphics.draw . It has some examples that use the rotation and draw origin arguments which are what you need. Thanks! After looking at it, I was able to make a variable called originX which has the code: originX = originX + 0.5*dt in love.update I set the orientation ...
- Sun Dec 29, 2013 10:51 pm
- Forum: Support and Development
- Topic: Help - Keep an image rotating
- Replies: 6
- Views: 1796
Help - Keep an image rotating
I need a bit of help. Im trying to make a space game, and trying to add asteroids. The problem is, the asteroids will move across the screen fine, but I cant get them to rotate. I need a bit of help for that. I want the image to be rotating from its center, slowly, as it goes across the screen like ...