Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Apidcloud on April 29, 2011, 12:41:59 pm

Title: class_one < class_two problem <.< [solved :D]
Post by: Apidcloud on April 29, 2011, 12:41:59 pm
Hey there :P

I'm with a little problem here...

When I was starting rgss, I was told that parent classes should be able to acess child classes methods


Is this right? lol
Today I was doing some changes on Game_Event that descends from Game_Character, and from this last I can't acess Game_Event method, it raises 'NoMethodError' <.<

Why is this happening? xD

Thanks xD
Title: Re: class_one < class_two problem <.<
Post by: winkio on April 29, 2011, 12:50:20 pm
you have that backwards.  child has all the properties of parent, not the other way around.  So Event could access methods of Character, but Character can't access methods of Event.
Title: Re: class_one < class_two problem <.<
Post by: Apidcloud on April 29, 2011, 12:55:01 pm
>.< makes sense XD  :^_^':

Thanks a lot :P