Sprite not working on device but is on the simulator

  1. You’re using GIFs.  You need to use PNG for this.  In general only use JPG or PNG files.

  2. This code is wrong:

    loopCount = 1000000000000000000000000000000000000000000000000

It does produce an warning message:

WARNING: The 'loopCount' value(-2147483648) cannot be negative.

If you want an infinite loop do this:

loopCount = 0 -- loop forever
  1. I suggest creating reasonable names for your assets.  The names you have are very hard to read and debug.  Nice short meaningful names are better.

  2. This is not running in the simulator (Windows) either.  

  3. Please limit the use of ALL CAPS in forums posts and titles.  It implies shouting or frustration.  If you’re frustrated, say so, we’ll understand.  If you want to draw the eye to something, make it bold or underline it or both.

I tested some fixes, and

  1. once you convert the sprite source images to PNG and,

  2. fix the loop count you should be in better shape.  

However, your menu images will need to be cleaned up (remove black background.)

One final note.  I pointed out some things in prior posts that would help to debug this issue, but failed to direct you here:

https://forums.coronalabs.com/topic/55780-ask-a-better-question-get-a-better-answer/

The above link will take you to a blog post where I talk about asking questions and how to provide better details to those you’re asking for help.  It may help you in the future to try to follow some of the discussed suggestions.

Good luck with your game.

@roaminggamer you are a miracle worker!  It was the loop count thing that was screwing up my sprites.  The  .gif images are fine but the loop count was wrong! Thanks so much for your time and help! Very appreciated! 

No.  Really, I suggeest you not use GIFs.  I think you’ll be unpleasantly surprised in the future if you do.

@How to do this without GIFs?

I wonder how one would animate the heart rate line (please open the attachment) in Corona SDK?

The more general use case would be animated lines in Neon glow like they are done in Tron 2.

Either it would take 100s of sprites to make it fluent or there must be a vector alike method to do it with given points.

Does anyone have a clue how to get this done?

Cheers

Matt