defold-orthographic icon indicating copy to clipboard operation
defold-orthographic copied to clipboard

Can you make a "follow multiple game objects"?

Open notbadgun opened this issue 7 years ago • 5 comments

notbadgun avatar Aug 18 '18 08:08 notbadgun

Split into two requests. Second one: https://github.com/britzl/defold-orthographic/issues/9

britzl avatar Aug 19 '18 09:08 britzl

How would the "follow multiple game objects" work? I'm guessing it would center the camera on a midpoint?

britzl avatar Aug 19 '18 09:08 britzl

Yeap! Thanks!

notbadgun avatar Aug 19 '18 10:08 notbadgun

@britzl I tried to make a PR for this issue, I realized that the target URL is kept with a go property, so because go property is not supporting table of hashes what is your suggested way of keeping multiple URLs and passing it from camera.script to camera.lua?

dev-masih avatar Nov 07 '19 06:11 dev-masih

one solution that i can think of is to store the target table in camera.lua and create set, get functions in it, so camera.script can access those targets. i made a PR https://github.com/britzl/defold-orthographic/pull/30 but it needs some discussion

dev-masih avatar Nov 07 '19 06:11 dev-masih