Search found 5 matches

by benbooth493
Wed Feb 07, 2018 7:55 am
Forum: Support and Development
Topic: Horizontal scrolling background
Replies: 8
Views: 10203

Re: Horizontal scrolling background

Ok got it working....even built a player and background class.
Code much tidier. :)
by benbooth493
Tue Feb 06, 2018 7:37 pm
Forum: Support and Development
Topic: Horizontal scrolling background
Replies: 8
Views: 10203

Re: Horizontal scrolling background

That kind of works but I need it to scroll based on character walking direction.
I have the scrolling working nicely, it's just that the image is larger than the screen dimensions, and I need to scale the image to fit a quad that has the same dimensions as the screen.
by benbooth493
Tue Feb 06, 2018 8:33 am
Forum: Support and Development
Topic: Horizontal scrolling background
Replies: 8
Views: 10203

Re: Horizontal scrolling background

Excellent! I know have this working although I need to scale the Quad/QuadTexture to fit the viewport. When I try to add the scale factor for x,y it just appears to move the texture rather than scale it: local sx, sy = background.quad:getTextureDimensions() sx = love.graphics:getWidth() / sx sy = lo...
by benbooth493
Mon Feb 05, 2018 7:50 pm
Forum: Support and Development
Topic: Horizontal scrolling background
Replies: 8
Views: 10203

Horizontal scrolling background

Hi. I'm new to Love2d and I'm playing around and learning as I go....maybe write a game at some point! I'm trying to implement a scrolling background, where when my character sprite is walking right or left the sprite stays stationary, but the background scrolls infinitely. I just can't figure out h...
by benbooth493
Sun Aug 21, 2016 6:47 pm
Forum: Support and Development
Topic: Scrolling horizontal background
Replies: 2
Views: 2820

Scrolling horizontal background

Hello all!

I'm new to Love2D and I'm already making great progress, but I am stuck trying to implement a horizontal scrolling background.

What is the best way to do this?

Thanks in advance!

Ben