# Newbie CLASS problem please help a newb

**URL:** https://forum.kirupa.com/t/newbie-class-problem-please-help-a-newb/297545
**Category:** Uncategorized
**Created:** [October 5, 2009, 1:56am UTC](https://forum.kirupa.com/t/newbie-class-problem-please-help-a-newb/297545 "2009-10-05T01:56:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ectoblast](https://avatars.discourse-cdn.com/v4/letter/e/a183cd/32.png) [@ectoblast](https://forum.kirupa.com/u/ectoblast)
#### Post date: [October 5, 2009, 1:56am UTC](https://forum.kirupa.com/t/newbie-class-problem-please-help-a-newb/297545/1 "2009-10-05T01:56:27Z")

</div>

hi everyone thank you in advance.

i have 2 classes, one for ship

one for bullet.

i was trying to set the bullet.x to ship.x in the bullet class

but it keeps telling me undefined. but clearly it is in my ship class.

can anyone tell me what is wrong and how i can fix this??
