Author Topic: Instantiating sprite prefab  (Read 2464 times)

speedyw03

  • Guest
Instantiating sprite prefab
« on: January 06, 2013, 10:59:24 AM »

I'm making a fps and I'm trying to achive this in the pic above (600+)

How can I instantiate it in the middle of the screen?? When I use nguitools.addchild there's no position parameter!

help me! >:(

Cripple

  • TNP Alpha
  • Full Member
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 117
    • View Profile
Re: Instantiating sprite prefab
« Reply #1 on: January 06, 2013, 12:49:19 PM »
The function AddChild returns the created GameObject, change the position of its transform in order to achieve what you want.
Graphicstream Dev.