Hey guys! I use love2d for few days and this is awesome tool for gamedev
I have some problem with synchronization between game hero and light from this thread. I need it for a horror game
I attach test scene, you can see all troubles by yourself.
It had a dirty code, never mind, I just want to fix this.
Thanks for any help
Speed synchronization problem
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 3
- Joined: Mon Jun 03, 2013 7:33 pm
Speed synchronization problem
- Attachments
-
- test.love
- (155.93 KiB) Downloaded 97 times
Re: Speed synchronization problem
you have to pass the player's position on the screen to the shader.
this should fix it:
this should fix it:
Code: Select all
effect:send("pos",{player.getX() + 35 - camera._x, player.getY() - 20 - camera._y})
DRAW DRAW - online painting app CLICK NUMBERS - cool game with numbers THEME LOVEFRAMES - a collection of my themes HOST FOR FREE - free hosting for online LOVE games STALK PEOPLE - a map of LOVE users
-
- Prole
- Posts: 3
- Joined: Mon Jun 03, 2013 7:33 pm
Re: Speed synchronization problem
it fix some parts
but when I'm going up light on this time going down :<
but when I'm going up light on this time going down :<
Who is online
Users browsing this forum: Bing [Bot] and 3 guests