So this is my first day on the trial, so it is possible I’m overlooking something but after spending a while now and testing the legit code I’m not sure why it’s causing me problems.
So basically I followed the YouTube video guide earlier on making a sprite sheet animate, and I did it successfully. Later I made a new project and was trying to animate my own sprite sheet but it would just never appear on the screen so I modifed the setting to be the greenman.png test example to see if he would display or simply check for any typos I might have made. Well he didn’t display either and after a while of not understanding why it was not working I copied and pasted the exact code on that video tutorial and tried using that. Once again, it was just a black screen on the simulator with the time up at the top with the “Carrier” message. I reloaded, opened the simulator again and rebooted my whole Mac.
In my build settings I have UIStatusBarHidden=true, and I notice that sometimes when it’ll start up the screen will be all black, as if that setting is working, then every time you Command+R it’ll just be the black screen with the time again as if the hidden UIStatusBar isn’t true anymore.
So I’m just wondering if it’s possible the entire simulator is bugged since I used example code and it’s not even displaying correctly.
Here’s my code I was using if you wanna try to spot any typos but they should be all correct that is.
[code]require “sprite”
local sheet1 = sprite.newSpriteSheet(“greenman.png”, 128, 128)
local spriteSet1 = sprite.newSpriteSet(sheet1, 1, 15)
local instance1 = sprite.newSprite(spriteSet1)
instance1.x = display.contentWidth /? 2
instance1.y = display.contentHeight / 2
instance1:play()[/code]
This is the greenman code from the site, and once again just getting the blank screen with the time at the top. Yes, greenman.png is in the file, this Lua is called main.lua so there’s no problems with that in case you wonder if that might be the issue.
Thanks. [import]uid: 9973 topic_id: 2661 reply_id: 302661[/import]