2D-Mario-style-platformer icon indicating copy to clipboard operation
2D-Mario-style-platformer copied to clipboard

error in player

Open zouhair-bit opened this issue 3 years ago • 5 comments

    self.image = self.animations['idle'][self.frame_index]

is giving me an error idk why

zouhair-bit avatar Jan 31 '22 22:01 zouhair-bit

from os import walk

def import_folder(path):

for img in walk(path):
    print(img)

import_folder('../graphics/character/idle')

i checked with this but still no output(its printing nothing)

zouhair-bit avatar Feb 01 '22 13:02 zouhair-bit

@clear-code-projects

Piras314 avatar Mar 14 '22 01:03 Piras314

I had the same issue. Mine worked after getting rid of '../' in the file path and just having import_folder(graphics/character/idle'). I tested it both with the same file directory as well as moving the code files outside of the code folder, and they both worked.

syn2567 avatar Jul 20 '22 00:07 syn2567

make it ./ instead of ../ i tried that and it worked

ghost avatar Sep 23 '22 04:09 ghost

Just remove this from the character path -> ../ Like this: character_path = 'graphics/character/'

ivanalggon avatar May 04 '23 18:05 ivanalggon