playMaker

Author Topic: Get Owner ?  (Read 1832 times)

NinjaX

  • Full Member
  • ***
  • Posts: 113
  • XCO is the ULTIMATE IOS Ninja!!
    • XCOGAMES
Get Owner ?
« on: December 26, 2013, 08:39:53 PM »
Hello I have a plane that shoots down bad guys it is set to / look at / anything that is a "game object - called bad guys" :)

It works fine on the first one but than that it. It does not turn around for the other ones ?

I thought all I had to do was place a get owner on all the bad guys and it will aim at each one automatically ? Also i noticed in play mode the "get owner" seems to shaded like its not even on ?

Help, please ?
XCO is the ULTIMATE IOS Ninja, Beware for he sees Everything and Nothing all at once!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Owner ?
« Reply #1 on: December 27, 2013, 05:42:02 AM »
Hi,

Get Owner is shaded because it performs once and then waits doing nothing ( unlike actions set to "every frame" that will perform as long as this state is active.

 in your case, you need to store all your bad guys in a list somehow ( maybe using arrayMaker or else), and then query for the next bad guy to aim for. you need to create a way to reference these bad guys.

bye,

 Jean

NinjaX

  • Full Member
  • ***
  • Posts: 113
  • XCO is the ULTIMATE IOS Ninja!!
    • XCOGAMES
Re: Get Owner ?
« Reply #2 on: December 27, 2013, 10:20:11 AM »
I see thank you for the quick reply!! :D
XCO is the ULTIMATE IOS Ninja, Beware for he sees Everything and Nothing all at once!