Page 1 of 1
iPhone flash
Posted: Sun Jan 08, 2012 1:52 pm
by uneu
can LiveCode control it, i.e. switch on/off, the most current documentation I was able to locate says camera can be queried about flash present but what does this help if not able to control it, documentation says nothing about it.
I think this is the main problem that is never ever says anything regarding what currently not can be done, be it because of SDK issues or whatever else

Re: iPhone flash
Posted: Sun Jan 08, 2012 6:05 pm
by Mark
Hi,
The iOS Release Notes contain a few remarks regarding unsupported features. It doesn't make sense to provide a complete list of everything that can't be done with LiveCode because it would include things like making coffee instantly, teleporting and frying an egg (although people might find ways to do 2 out of 3).
You can control the flashlight if you write an external.
Kind regards,
Mark
Re: iPhone flash
Posted: Sun Jan 08, 2012 9:39 pm
by uneu
if I could write externals, I could do many things

Re: iPhone flash
Posted: Sun Jan 08, 2012 9:57 pm
by Mark
Hi,
I write externals for my job. I think I could made an external to turn on and off the flashlight. You can contact my company
here if you like.
Mark
Re: iPhone flash
Posted: Sun Jan 08, 2012 11:07 pm
by uneu
Maybe becomes more affordable and worthwhile when selling it to many?
Is it btw. possible to port Box2D via this external-approach? That would be "killer".
Re: iPhone flash
Posted: Sun Jan 08, 2012 11:22 pm
by Mark
Hi,
I don't know Box2D. I don't think there is sufficient interest in a flashlight external to have it financed by a shareware business model.
Kind regards,
Mark
Re: iPhone flash
Posted: Sun Jan 08, 2012 11:29 pm
by uneu
http://box2d.org/
would solve the biggest problem LiveCode currently has (for many).
Re: iPhone flash
Posted: Mon Jan 09, 2012 2:17 am
by Mark
Hi,
I don't think that Box2D will help you. It will probably be much more helpful to write a few really simple functions to convert screen space to metric values. The screenRect function is your friend.
Kind regards,
Mark
Re: iPhone flash
Posted: Mon Jan 09, 2012 1:35 pm
by uneu
I can only speak from 3 weeks using Corona: having a 2d physics engine is pure joy. There are 3rd party programs available that work with Box2d and make using sprites together with physics objects and making game levels from what I have seen so far almost a snap. What you describe here I cannot comment on, I simply do not understand what it means.
Re: iPhone flash
Posted: Mon Jan 09, 2012 1:46 pm
by Mark
Hi,
Sure, having a real physics engine is very cool, but AFAIK Box2D is just a bunch of functions to convert pixels into metric values. You can do that in LiveCode. I couldn't find any documentation about Box2D so I might be wrong, but all I found was some conversion methods and nothing about bouncing effects and mass dependent movement etc.
Kind regards,
Mark