# Can't assign value to inherited property?

**URL:** <https://forum.kirupa.com/t/cant-assign-value-to-inherited-property/271445>\
**Category:** Uncategorized\
**Created:** [September 23, 2008, 8:03am UTC](https://forum.kirupa.com/t/cant-assign-value-to-inherited-property/271445 "2008-09-23T08:03:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KDragon](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@KDragon](https://forum.kirupa.com/u/KDragon)\
**Post date:** [September 23, 2008, 8:03am UTC](https://forum.kirupa.com/t/cant-assign-value-to-inherited-property/271445/1 "2008-09-23T08:03:33Z")

</div>

Hello, I’ve been searching all around for an answer to this and I can’t find a thing.

I have a class that extends the Sprite class. When I try to set the value of the height property like so:

height=480;

and then trace the value of height I get 0.

Other properties that aren’t inherited work fine. Is there some special method I need to use to reference inherited properties?
