Hello everybody…
This is a simple question
In my code:
self.accept("arrow_up",self.setKey["walk",1])
I want that the character moves only when I press Shift + Up arrow not Up only
How can I write it in the previous code
Hello everybody…
This is a simple question
In my code:
self.accept("arrow_up",self.setKey["walk",1])
I want that the character moves only when I press Shift + Up arrow not Up only
How can I write it in the previous code
Try “shift-arrow_up” as the event name. I say try because it depends on how you have configured your button throwers. I think that by default that should work. If not, check this out:
If you want your player to walk on both shift-up and up, you’ll either need to catch both events, or remove Shift from the ModifierButtons.