iPhone flash

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
uneu
Posts: 96
Joined: Wed Dec 07, 2011 11:45 pm
Contact:

iPhone flash

Post by uneu » Sun Jan 08, 2012 1:52 pm

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 :evil:

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iPhone flash

Post by Mark » Sun Jan 08, 2012 6:05 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

uneu
Posts: 96
Joined: Wed Dec 07, 2011 11:45 pm
Contact:

Re: iPhone flash

Post by uneu » Sun Jan 08, 2012 9:39 pm

if I could write externals, I could do many things :?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iPhone flash

Post by Mark » Sun Jan 08, 2012 9:57 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

uneu
Posts: 96
Joined: Wed Dec 07, 2011 11:45 pm
Contact:

Re: iPhone flash

Post by uneu » Sun Jan 08, 2012 11:07 pm

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".

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iPhone flash

Post by Mark » Sun Jan 08, 2012 11:22 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

uneu
Posts: 96
Joined: Wed Dec 07, 2011 11:45 pm
Contact:

Re: iPhone flash

Post by uneu » Sun Jan 08, 2012 11:29 pm

http://box2d.org/

would solve the biggest problem LiveCode currently has (for many).

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iPhone flash

Post by Mark » Mon Jan 09, 2012 2:17 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

uneu
Posts: 96
Joined: Wed Dec 07, 2011 11:45 pm
Contact:

Re: iPhone flash

Post by uneu » Mon Jan 09, 2012 1:35 pm

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.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: iPhone flash

Post by Mark » Mon Jan 09, 2012 1:46 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply