V
V
Valery Albertovich Zhmyshenko2020-08-26 20:51:30
Game development
Valery Albertovich Zhmyshenko, 2020-08-26 20:51:30

How to make level scrolling in love 2d?

There is a level, it has characters and their paths, how to make smooth scrolling when some variable, for example scrollLeft = true?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dollar, 2020-08-26
@DIvan2000

  • Store the horizontal offset in a separate variable.
  • Every tick add a number to it when scrollLeft = true.
  • All game objects are drawn with this offset in mind.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question