Hi everyone,
I’m having some strange issues with a game we’re developing. I started working on it on a Mac (build 2011.591) and, since our artist has a windows machine, he downloaded the Windows version of the SDK. Once he opens the project (and I tried as well) it doesn’t show anything apart one of the images and the player. Physics is working fine. Here’s the code I use to display the images:
[lua]local sky = display.newImageRect(game, “Level_1/lvl1_bkg.png”, 573, 2580 )
game:insert( sky )
sky.x = display.contentWidth / 2 + 43
sky.y = 1290
local platforms = display.newImageRect(game, “Level_1/lvl1_platforms.png”, 573, 2580)
game:insert( platforms )
platforms.x = display.contentWidth / 2 + 43
platforms.y = 1290
local leftWall = display.newImage( “Level_1/lvl1_wall_left.png” )
game:insert( leftWall )
leftWall.x = 35
leftWall.y = 1290
local rightWall = display.newImage( “Level_1/lvl1_wall_right.png” )
game:insert( rightWall )
rightWall.x = 499
rightWall.y = 1290
local player = display.newImage( “Sprite/standright.png” )
game:insert(player)
local ground = display.newImageRect(game, “Lava/lava.png”, 573, 682)
game:insert( ground )
physics.addBody( ground, “static”, { friction=0.3, bounce=0.0 } )
ground.x = display.contentWidth / 2 + 43
ground.y = 2700
ground.stopx = display.contentWidth / 2 + 43
ground.stopy = 425[/lua]
It’s not displaying anything apart from “ground” and “player”. I read that there are restrictions on names, but that should only affect video and audio files. I should mention that I’m using the “director” library to load the levels, but we had the same issue even when it was all in the main file.
Any ideas?
Thanks a lot for any suggestion!
Marco [import]uid: 96352 topic_id: 17780 reply_id: 317780[/import]
[import]uid: 52491 topic_id: 17780 reply_id: 67870[/import]