HI Andrew,
I am not using Storyboard or Director class.
My main.lua is as follows before I commented out the last three lines.
– DoDec3 main
require (“Setup”)
require (“Functions”)
require (“PlayScene”)
Setup()
Background(0,255,0)
PlayScene()
Setup.lua is as follows:
require (“Tables”)
require (“Functions”)
function Setup()
display.setStatusBar( display.HiddenStatusBar ) – Hide the Status Bar
– Setup Initial colors
ResetColors()
SOSx = display.screenOriginX + 25 – Screen Offset x
SOSy = display.screenOriginY + 50 – Screen Offset y
ScH = display.viewableContentHeight – Viewable Content Height
ScW = display.viewableContentWidth – Viewable Content Width
SF = 510
print(“Setup” ,ScH, SOSx, SF, ScW,SOSy)
SFx = (ScH - SOSx) / SF – Scaling Factor x
SFy = (ScW - SOSy) / SF – Scaling Factor y
DotDiam = 5 * SFx – Default dot diameter
SW = 5 – Default line thickness
nSeconds = 0
Tap1 = 0
Tap2 = 0
SFlag = false
CompleteFlag = false
PlayButtonx = 250 * SFx + SOSx
PlayButtony = 10 * SFx + SOSx
PlayButtonW = 50
PlayButtonH = 110
RestartButtonx = 250 * SFx + SOSx
RestartButtony = 70 * SFx + SOSx
RestartButtonW = 50
RestartButtonH = 110
QuitButtonx = 250 * SFx + SOSx
QuitButtony = 130 * SFx + SOSx
QuitButtonW = 50
QuitButtonH = 110
end
the first portion of PlayScene.lua is as follows:
require(“Functions”)
require(“ExitScene”)
local widget = require (“widget”)
local PlayButton = widget.newButton{
id = “PlayBtn”,
left = 100 * SFx + SOSx,
top = 50 * SFy + SOSy,
label = “Play”,
width = 150, height = 28,
cornerRadius = 8,
onEvent = onPlayButtonEvent
}
The Runtime Erroe references line 7 in PlayScene.lua : left = 100 * SFx + SOSx,
But this doesn’t explain why the simulator is going directly to PlayScene.lua when I have the lines in main.lua commented out as follows:
– DoDec3 main
require (“Setup”)
require (“Functions”)
require (“PlayScene”)
–Setup()
–Background(0,255,0)
–PlayScene()
I also have no " File > Show Project Sandbox" in the Simulator. The release I am using is Build: 2012:971
Any suggestions?