playMaker

Author Topic: Arrow instance to land on target  (Read 1929 times)

Deevit

  • Playmaker Newbie
  • *
  • Posts: 2
Arrow instance to land on target
« on: April 28, 2016, 06:37:25 AM »
Hi,

I am having trouble getting my arrow instance to land on it's mark correct.

I think the problem is that my arrow is a prefab and needs to get it's landing position from a prefab, but when I do this the arrow wil alway's drop on the target prefab position, not the target set value I create when key is up.

What I want is the arrow to reference the scene target not the prefab target. Can anyone explain to me how I can instance the arrow and make it reference the scene target?

Basically I am having trouble working with scene objects and prefab objects

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Arrow instance to land on target
« Reply #1 on: April 28, 2016, 09:52:28 PM »
Are u using world position?

Deevit

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Arrow instance to land on target
« Reply #2 on: May 02, 2016, 05:59:01 AM »
I solved the problem with global variables. It is not the most ideal but for my prototype it's fine.

Next step is to give every arrow fired a different target position so it won't reset with every next shot and the arrow changes direction every mouse click...