Any ideas? [import]uid: 103624 topic_id: 17762 reply_id: 68478[/import]
It’s hard to say without seeing it in action. Perhaps if you upload your project people can have a look at it for you?
Peach [import]uid: 52491 topic_id: 17762 reply_id: 68529[/import]
Will do!
Here is my current project with it’s horrible graphics.
http://dl.dropbox.com/u/27644193/Game.zip [import]uid: 103624 topic_id: 17762 reply_id: 68581[/import]
Got it. Line 27 reads this;
[lua]sprite.add (pigset, “pigmright”, 4, 6, 250, 0)[/lua]
Change it to;
[lua]sprite.add (pigset, “pigmright”, 4, 3, 250, 0)[/lua]
That second number is NOT the last frame it plays. I think you thought you were saying “Play frames 4 through 6” - in fact you were saying “start at frame 4 and play 6 frames”.
That will fix it.
Peach
PS - Your images aren’t a support format, how are you saving them? [import]uid: 52491 topic_id: 17762 reply_id: 68601[/import]
My images are .png. I saved them with Paint.NET.
I think I can understand what you mean because I believe the suffix is .PNG instead of the usual .png.
Also, for some reason after I move my pig I click on the sprite, it resets back to standing mode. Did I screw up a touch sensor somewhere? [import]uid: 103624 topic_id: 17762 reply_id: 68636[/import]
We only support a certain kind of image; take a look at Carlos’ posts in this thread, they’ve very clear - https://developer.anscamobile.com/forum/2011/04/20/unsupported-color-space
For your project, did the sprite start playing correctly after my changes? You didn’t comment on it.
Peach [import]uid: 52491 topic_id: 17762 reply_id: 68692[/import]
It does, and I just resaved all of the images as 32-bit pngs. I believe that should fix the problem. [import]uid: 103624 topic_id: 17762 reply_id: 68734[/import]
Great, glad to hear it.
Could use more info on what you mean about it defaulting back to standing mode - is that the first frame in the sequence you’re playing? If so, that would be why.
Peach [import]uid: 52491 topic_id: 17762 reply_id: 68756[/import]
Awesome, this post was so helpful! [import]uid: 7116 topic_id: 17762 reply_id: 88970[/import]