Hi,
So I’m desperately trying to upload the game finally.
There are no errors in the Codea environment and the game runs great.
When I bring it into Xcode and run it on both an iPhone 6S and and an iPad Mini 2 I get this new nil value error in two places. There are no nil values so I wonder if something Xcode is doing is missing the value.
I had it in previous Xcode last night and in the 5th June release update to Xcode. Both devices are on the latest iOS
The line 144 error goes after a it discovers the other error.
Just to clarify the global variable isn’t a variable but is defining an instance of the class called ‘Midfield’
mf1=Midfield(g, scY*20, scX*40, scY*20,hspeed*1)
mf2=Midfield(g, scY*40, scX*40, scY*20,hspeed*1)
mf3=Midfield(g, scY*60, scX*40, scY*20,hspeed*1)
mf4=Midfield(g, scY*80, scX*40, scY*20,hspeed*1)
mf5=Midfield(g, scY*100, scX*40, scY*20,hspeed*1)
mf6=Midfield(g, scY*120, scX*40, scY*20,hspeed*1)
mf7=Midfield(g, scY*140, scX*40, scY*20,hspeed*1)
mf8=Midfield(g, scY*160, scX*40, scY*20,hspeed*1)
rf1=Rockfield(g, scY*20, scX*50, scY*20,hspeed*1)
rf2=Rockfield(g, scY*40, scX*50, scY*20,hspeed*1)
rf3=Rockfield(g, scY*60, scX*50, scY*20,hspeed*1)
rf4=Rockfield(g, scY*80, scX*50, scY*20,hspeed*1)
rf5=Rockfield(g, scY*100, scX*50, scY*20,hspeed*1)
rf6=Rockfield(g, scY*120, scX*50, scY*20,hspeed*1)
rf7=Rockfield(g, scY*140, scX*50, scY*20,hspeed*1)
rf8=Rockfield(g, scY*160, scX*50, scY*20,hspeed*1)
If I comment out the first of those lines (line 144) it throws up the error as line 145. This is part of the setup code in main.
And here is the other error:
if explodecount>0 then
explodecount=explodecount-1
end
Thanks
Rich