Playmaker Forum

PlayMaker News => General Discussion => Topic started by: gamedivision on February 26, 2014, 06:14:45 AM

Title: Object creation to the right of the camera (help)
Post by: gamedivision 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
Title: Re: Object creation to the right of the camera (help)
Post by: gamedivision on February 26, 2014, 03:36:57 PM
sorted translate did the job
Title: Re: Object creation to the right of the camera (help)
Post by: jeanfabre 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
Title: Re: Object creation to the right of the camera (help)
Post by: gamedivision 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