How to make Parallax

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Hero_360
Prole
Posts: 4
Joined: Mon Dec 09, 2024 10:35 pm

How to make Parallax

Post by Hero_360 »

Hello Love2d Users



nowadays i am working on a 2d platformer game , i have already done the map and the player (both are in separate files like player.lua and map.lua (module files)) so i wanted to make a parallax view like in undertale if someone knows what parallax view is

i just want to know the idea of making a parallax view using Love2d
Also if there are several math stuff in the code please tell me the importance of it (for example you can make something negative and you can divide or multiply it by smt)

Thanks for reading , i hope that you got it
RNavega
Party member
Posts: 465
Joined: Sun Aug 16, 2020 1:28 pm

Re: How to make Parallax

Post by RNavega »

There's an explanation in here:
https://www.gamedev.net/forums/topic/55 ... st_1270071

One text I found mentioned the Firewatch game homepage, it does have a nice artistic use of it (scroll the page down):
http://www.firewatchgame.com/

There's a Lua demo here in the forums, by some noob:
viewtopic.php?p=258506#p258506
User avatar
dusoft
Party member
Posts: 792
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

Re: How to make Parallax

Post by dusoft »

Hero_360 wrote: Sun Apr 13, 2025 1:28 am Hello Love2d Users



nowadays i am working on a 2d platformer game , i have already done the map and the player (both are in separate files like player.lua and map.lua (module files)) so i wanted to make a parallax view like in undertale if someone knows what parallax view is

i just want to know the idea of making a parallax view using Love2d
Also if there are several math stuff in the code please tell me the importance of it (for example you can make something negative and you can divide or multiply it by smt)

Thanks for reading , i hope that you got it
Or you can check these libraries:
https://github.com/Oval-Tutu/shove/tree ... o/parallax
https://github.com/idbrii/love-parallax
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests