local function spawnController( action )
if ( spawnTimer and ( action == “start” or action == “stop” ) ) then
timer.cancel( spawnTimer );
end
if( action == “start” ) then
local spawnTime = 250;
spawnTimer = timer.performWithDelay( spawnTime, function( e )
spawnWater();
if( e.count % ( 9 * ( 1000 / spawnTime ) ) == 0 ) then
spawnHeart();
end
if( e.count % ( 7 * ( 1000 / spawnTime ) ) == 0 ) then
spawnCoin();
end
end, 0 );
elseif ( action == “pause” ) then
timer.pause( spawnTimer )
elseif ( action == “resume” ) then
timer.resume( spawnTimer )
end
end
only the drops( water ) not spawning as it should on device only. worked fine till I added some transitions and effects to game.lua scene but those cancel before spawnController function starts… maybe it’s somthing to do with the memory of the device against the pc’s.
I dunno if theres more code related exept this one if you can tell me which part of my code do you want me to paste for you to understard better my problem ill be happy to do that… thanks for help