Hi, is it possible to change altitude every time it changes?
I’m using this code:
local alti = display.newText( "-" , 260, 485, "HelveticaNeue-UltraLight", 19) sceneGroup:insert(alti) local function altT( event ) local altText = string.format( '%.3f', event.altitude ) alti.text = altText\*1.1 end Runtime:addEventListener( "location", altT )
I’d like the value “alti” to change every time altitude changes.
(Like happens in an app called “Ski Tracks”) were altitude changes constantly.