# The go object isn't recognized (SOLVED)

**URL:** <https://forum.defold.com/t/the-go-object-isnt-recognized-solved/24432>\
**Category:** Questions\
**Created:** [July 12, 2018, 4:56pm UTC](https://forum.defold.com/t/the-go-object-isnt-recognized-solved/24432 "2018-07-12T16:56:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashjaysan](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/flashjaysan/32/9639_2.png) [@flashjaysan](https://forum.defold.com/u/flashjaysan)\
**Post date:** [July 12, 2018, 4:56pm UTC](https://forum.defold.com/t/the-go-object-isnt-recognized-solved/24432/1 "2018-07-12T16:56:25Z")

</div>

Hi!  
I’m just starting to learn Defold.

First I tried to show an image on screen.

1. I put a png file in the “main” folder
2. I created an atlas and added a new image with the png reference to it
3. I created a game object in the main.collection
4. I attached a sprite component to it
5. I referenced the atlas and the image to the sprite
6. It showed the image when I build the game.

Then I moved the game object (not the sprite position but its parent game object) away from the origin.

Now I’m trying to put back by code a game object at the origin of the main.collection.  
I tried this but it didn’t worked :  
I created a script and attached it as a file component to the sprite’s game object.

```lua
function init(self)
	self.zero_vector = vmath.vector3()
	go.set_postion(self.zero_vector)
end

```

So I tried to use the update function to do it :

```lua
function update(self, dt)
	-- Add update code here
	-- Remove this function if not needed
	go.set_postion(self.zero_vector)
end

```

It also didn’t worked.  
The error message is as follows :  
attempt to call field ‘set\_postion’ (a nil value)  
I suppose it’s because the go object isn’t recognized.  
Am I missing something?  
_Also, is there a chat community like Discord or irc for Defold?_

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [July 12, 2018, 5:15pm UTC](https://forum.defold.com/t/the-go-object-isnt-recognized-solved/24432/2 "2018-07-12T17:15:03Z")

</div>

> [@flashjaysan](#):
>
> set\_postion

It’s misspelled. It’s supposed to be [go.set\_position()](https://www.defold.com/ref/go/#go.set_position:position--id-)

The error message tells you that it only found a `nil`value called `set_postion`.  
In Lua, undefined variables are evaluated as `nil`.

_Yes, we have a slack channel [here](https://www.defold.com/slack/)_

---

<div class="post-metadata">

**Author:** ![flashjaysan](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/flashjaysan/32/9639_2.png) [@flashjaysan](https://forum.defold.com/u/flashjaysan)\
**Post date:** [July 12, 2018, 5:20pm UTC](https://forum.defold.com/t/the-go-object-isnt-recognized-solved/24432/3 "2018-07-12T17:20:08Z")

</div>

Thanks! I didn’t caught my misspelling!
