Hello, after the code i written using the help from the guys here viewtopic.php?f=4&t=10253 i'm having a problem...
download the .love from the last post viewtopic.php?f=4&t=10253#p62109 , run it, press "d" for a while and then press "a".
The character isn't stopping...The sliding is an affect from the setLinearImpulse...
Any idea how to fix it?
Movement sliding as an affect from linear impulse
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Movement sliding as an affect from linear impulse
i dont understand what you want to do...
When I press 'd' he moves right. When I press 'a' he comes to a stop and moves left.
Do you want to stop him from sliding?
this can be done by putting
in your update function.
When I press 'd' he moves right. When I press 'a' he comes to a stop and moves left.
Do you want to stop him from sliding?
this can be done by putting
Code: Select all
objects.char.body:setLinearDamping(1)
in your update function.
wat ya mean she's in another castle!?
Re: Movement sliding as an affect from linear impulse
That did the trick!
Thanks!
Thanks!
Re: Movement sliding as an affect from linear impulse
No problem
wat ya mean she's in another castle!?
Who is online
Users browsing this forum: plexity and 2 guests