     
     //Convert StoryBoard x and y to screen x and y
     static public func conv(x:Double) -> Double {
-        return leftedge+x/stdswidth*actualwidth
+        return leftedge+x/stdwidth*actualwidth
     }
     
     static public func conv(y:Double) -> Double {

                    sprite.commands=parseCommands(lines: slines)
                    sprite.gentime()
                    sprite.genaction()
                }
                sprite.filepath=(sprite.filepath as NSString).replacingOccurrences(of: "\\", with: "/")
                sprite.filepath=(sbdirectory as NSString).appending("/"+sprite.filepath)

    public var sbsprites:[BasicImage]=[]
    public var sbactions:[SKAction]=[]
    public var sbdirectory:String
    public var earliest = Int.max
    
    init(directory:String,osufile:String,width:Double,height:Double,layer:Double) throws {
        self.sbdirectory=directory
