Sprite Disappears when I build for ipad

Hey everyone.

I hope you are great, I got some sort of issue. I have a sprite in my game that I made using spriteLoq. The sprite works well when I test my main.lua on corona simulator, but when I build to game to test it on a real device. The sprite simple disappears.

Does anyone know what is going on?

Thank you very much in advance.

Steve [import]uid: 109485 topic_id: 18906 reply_id: 318906[/import]

hi steven62,

FYI, Spriteloq has a sub-forum here: http://developer.anscamobile.com/forums/spriteloq-flash-corona®-exporter

Can you post a simple code sample? Does it disappear on other devices? I don’t have an iPad to test, but I know the code does work fine for plenty of other people working on iPad games. [import]uid: 27183 topic_id: 18906 reply_id: 72816[/import]

Hello Don

Here is the part of the code where I add the sprite

local loqsprite = require(“loq_sprite”)
local spriteFactory = loqsprite.newFactory(“johnny_sheet”)
local johnny = spriteFactory:newSpriteGroup()
johnny.x = 384
johnny.y = 760

johnny:play(“walking”)

The odd thing is that it works perfect on the simulator, but when I build the sprite simply disappears. I havent tested on other devices I only have an ipad on me right now. But its very strange.

Thank you very much for your time
[import]uid: 109485 topic_id: 18906 reply_id: 72818[/import]

build for xcode and test it in its simulator, and progress log will tell you, hopefully, whats wrong with your app [import]uid: 16142 topic_id: 18906 reply_id: 72821[/import]

Hi steven,

I don’t see anything wrong with that code. It must be something else causing the issue. Are you using any other libraries? Can you load regular images?

I don’t know why the behavior is different on the iPad. Maybe follow up on darkconsoles suggestion of running it on the xcode simulator to see what’s wrong. [import]uid: 27183 topic_id: 18906 reply_id: 72823[/import]

Thx for your help guys, Nope I just added the spriteLoq API to my project and not using any other libraries. I tried running it on xcode simulator and on an iphone 4 and I get the same result. No sprite animations on the xcode simulator or the devices it only works well on the corona simulator.

Sounds like a weird bug, I do have all the updates on all the software. I´ll keep digging around to see if I can find something. i´ll try to create the sprites using spritehelper instead to see if its a spriteLoq issue.

I´ll let you know, again thanks a lot for your help. [import]uid: 109485 topic_id: 18906 reply_id: 72826[/import]

hi steven can you send your entire code sample and assets to support at loqheart? I’ll try building to device for my ipod to see if I can replicate the issue. [import]uid: 27183 topic_id: 18906 reply_id: 72847[/import]

Hey Don.

I actually got it working I dont really know what was the issue. What I did was create a new project create the sprites again using spriteLoq then I changed the name of the sprite_sheet file typed the code again and voila!.

Thanks a lot for your help [import]uid: 109485 topic_id: 18906 reply_id: 72886[/import]

np Glad everything is working. [import]uid: 27183 topic_id: 18906 reply_id: 72889[/import]