#A bug that I couldn't figured out the solution

1 messages · Page 1 of 1 (latest)

open sleet
#

Hi. I'm having a weird issue that I couldn't figured out the solution. My player has general movement codes, and action codes. Movement codes include idling, walking and running while actions include dancing, sitting, drinking etc.. The problem is whenever I firstly run the game and :

First press the movement keys then use actions by spinning the mouse wheel there is no problem at all. (First Gif)

But If I first spin mouse wheel, then the player sprite stuck at idling and that stuck idle sprite speed changes depending to the defined image speeds of action sprites instead changing to action sprites when I keep spinning the mouse wheel. This is the key point that I couldn't figured out. (Secondary Gif. Do not mind the gif color bug please.)

Thanks so much 🙂

steady river
#

@open sleet You have this at start

self.Direction = "down"

#

but further you use "Down" for checks / set while moving

#

Isn't it is the problem as the init value is wrong because of the lower D ?

#

i imagine you already found the issue by now

open sleet
open sleet
#

@steady river Thanks so much to you. You fixed a thing that I've been working on since for a long time. I would love to credit you in special thanks page of game as a thank to you if you accept 🙂

steady river
#

Glad i was able to help ^^

open sleet