Hi. I've created a camera library for LÖVE. It provides basic functionalities that a camera should have and is inspired by hump.camera and FlxCamera. The goal is to provide enough functions that building something like in this video becomes as easy as possible:
STALKER-X on github
STALKER-X (Camera library)
- yetneverdone
- Party member
- Posts: 448
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: STALKER-X (Camera library)
Awesome! Very good documentation also! With lots of features hooray! Thanks dude
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Re: STALKER-X (Camera library)
Absolutely fantastic! It seems to address all the issues I had with Hump Camera, while still being very easy to use.
I'll be sure to upgrade to this system once I can get around doing so.
I'll be sure to upgrade to this system once I can get around doing so.
Re: STALKER-X (Camera library)
Nice work. Thank you for sharing.
looking into it and using luacheck in ZBS i found this:
I am not shure what you wanted to do. Probably remove parameters x and y ?
looking into it and using luacheck in ZBS i found this:
Code: Select all
function Camera:attach(x, y, w, h)
local x, y = 0, 0
...
Re: STALKER-X (Camera library)
Yea, I meant to do something else. I fixed it.
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
Re: STALKER-X (Camera library)
Amazing camera! I will certainly use it for future proyects. But I have a question, is there a way to make the shaking not move the camera position when it finishes, like it does in the example gif?
Re: STALKER-X (Camera library)
I should add an option for that. But for now you can just make the camera follow a target. If the camera is following a position then after the shake is done it will still be following that position.
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
Re: STALKER-X (Camera library)
Oh right, I'm asking for some cases like cutscenes, where the player doens't have control over the player, but I guess I can make the camera folow a target during those.
Re: STALKER-X (Camera library)
Just make it follow the center of the screen (in world coordinates).
- yetneverdone
- Party member
- Posts: 448
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: STALKER-X (Camera library)
Is there a debug mode where we can see the rectangular target as shown in the gif?
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Who is online
Users browsing this forum: Google [Bot] and 2 guests