playMaker

Author Topic: Object creation to the right of the camera (help)  (Read 2537 times)

gamedivision

  • Full Member
  • ***
  • Posts: 227
Object creation to the right of the camera (help)
« on: February 26, 2014, 06:14:45 AM »
my camera moves along the negative X axis,ive attached a trigger to the left of the camera so as say for instance mountains hit that trigger they create more mountains to the right of the camera,now here's where i'm struggling im not sure how to do it,im using a get position and storing the camera position in a float  then i use a set position for the mountains and ive tried a float add but doesnt work as the get position only takes the central position of the camera
any ideas

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Object creation to the right of the camera (help)
« Reply #1 on: February 26, 2014, 03:36:57 PM »
sorted translate did the job

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Object creation to the right of the camera (help)
« Reply #2 on: February 27, 2014, 03:28:19 AM »
Hi,

 ok, but what's confusing is the fact that using triggers should not require you to get positions of elements, only reacting to trigger events.

bye,

 Jean

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Object creation to the right of the camera (help)
« Reply #3 on: February 27, 2014, 04:55:46 PM »
no im logging the camera position as its the camera thats moving and i want the object to spawn to the right of the camera when its triggered