hey guys,
im trying to make my player move a little smoother across the screen, but you see the problem here is that he moves up incredibly slowly, and for some reason when holding the right and up arrow keys, the character moves down and right. all of the other controls work perfectly fine, can someone please help me out?
Problems with vector player movement (im new)
-
- Prole
- Posts: 15
- Joined: Wed Jun 26, 2013 5:41 pm
Problems with vector player movement (im new)
- Attachments
-
- player.lua
- (1.09 KiB) Downloaded 322 times
-
- Prole
- Posts: 15
- Joined: Wed Jun 26, 2013 5:41 pm
Re: Problems with vector player movement (im new)
also, if you guys need another one of my files just let me know, i just figure the problem is here
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Problems with vector player movement (im new)
It will probably help if you upload your whole .love, so we can playtest to see the problem with our own eyes and test a possible solution out before suggesting it to you.
Help us help you: attach a .love.
-
- Prole
- Posts: 15
- Joined: Wed Jun 26, 2013 5:41 pm
Re: Problems with vector player movement (im new)
alright man, like this?
- Attachments
-
- Windwaker.love
- (989.07 KiB) Downloaded 301 times
-
- Prole
- Posts: 15
- Joined: Wed Jun 26, 2013 5:41 pm
Re: Problems with vector player movement (im new)
theres also problems with the camera movement
-
- Prole
- Posts: 15
- Joined: Wed Jun 26, 2013 5:41 pm
Re: Problems with vector player movement (im new)
any ideas anyone? common, its soooo annoying.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Problems with vector player movement (im new)
It's a RAR-file. Please only use ZIP-files as .loves. I can't help you any better than before.
Help us help you: attach a .love.
-
- Prole
- Posts: 15
- Joined: Wed Jun 26, 2013 5:41 pm
Re: Problems with vector player movement (im new)
alright there! is it a zip file now ? sorry, when i say im new to this i litterally mean ive been at it for like 4 hours
- Attachments
-
- Windwaker.love
- (992.49 KiB) Downloaded 304 times
Re: Problems with vector player movement (im new)
Then, welcome hereTheSquareRootOf3 wrote:alright there! is it a zip file now ? sorry, when i say im new to this i litterally mean ive been at it for like 4 hours
I guess this is the problem:
Code: Select all
player.yvel = player.xvel - player.speed * dt
-
- Prole
- Posts: 15
- Joined: Wed Jun 26, 2013 5:41 pm
Re: Problems with vector player movement (im new)
thanks for the welcoming! but im sorry, what exactly should i replace with that?
Who is online
Users browsing this forum: No registered users and 6 guests