solved: timers, camera offset and spawning
so, I'm using Orbz's great drawing template to add some line drawing into a new app I'm creating. However, I've run into a snag. In the template, there is a timer that spawns the segment every 0 seconds. However, that timer seems to break any sort of camera offset code I implement.
If I have code that looks like this:
touch is pressed
spawn actor
xposition: mouse.position.x + camera.origin.x
it works fine
but if i wrap that in a timer, it ignores the camera.origin.x part.
I've tried putting just an attribute in that area and updating it outside of the timer, but nothing seems to work.
has anyone gotten that line drawing template to work on a scene outside of the default camera origin?
If I have code that looks like this:
touch is pressed
spawn actor
xposition: mouse.position.x + camera.origin.x
it works fine
but if i wrap that in a timer, it ignores the camera.origin.x part.
I've tried putting just an attribute in that area and updating it outside of the timer, but nothing seems to work.
has anyone gotten that line drawing template to work on a scene outside of the default camera origin?
Comments
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
it's always 3 hours worth of work and a 30 second fix it seems.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left