Jump to content

accessing different folder


Recommended Posts

Is it possible for a game state to access sprite info from a different file?  For instance, I have created a game state in folder1/somefile and in folder2 created a bunch of functions for my sprite.  Now my update function is in folder1/somefile, but I was to be able to use the functions in folder2 and put collision on them with the physics system.  I can log them in folder 2 fine and the arcade body is added no problem.  But when I try to pass into folder1/somefile it renders undefined.  Any ideas?  So it looks like this, folder1/somefile has a function move left, it works, but when you try to incorporate update into the move left function, it doesnt

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...