Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Simple object class(LoadFromFile problem)  (Read 3525 times)

0 Members and 1 Guest are viewing this topic.

mimipim

  • Newbie
  • *
  • Posts: 49
    • View Profile
Simple object class(LoadFromFile problem)
« on: February 12, 2011, 12:58:12 am »
Hi again :)

This time my problem is that LoadFromFile function from Image library return false while trying to load file.

It seems the error comes from my new class.
Take look at my script:
!Removed!

The result is: 'Can't load file: images/grass.png'

If I try to simply load the same image outside from my class its load successfuly.

EDIT: I remove code because I fix it myself. The problem was that I was trying to access Private variable. Sorry for this topic.. but I'm still learning classes :oops: