I am new to Corona and I am creating a game that will have a conveyor belt. To animate the belt to make it appear to move when a person lands on it what do I have to do? I didn’t think it would be sprites because the belt never changes in appearance like the legs on a person or animal. Any help would be appreciated. [import]uid: 72372 topic_id: 13626 reply_id: 313626[/import]
That would be great if you could do that and show me. I am not familiar with static sprites. Thank you and I look forward to seeing the Gif. I will also do some searching on static sprites.
Michelle [import]uid: 72372 topic_id: 13626 reply_id: 50017[/import]
Dacri,
Thank you and yes I understand the sprite you sent. How is that different from a regular sprite? I thought you mentioned about a static sprite or animated gif. The 15 slides you sent would work like a regular sprite correct?
What I am looking to do is to show a conveyor belt from the side and be able to show it like the wheels are turning and it moves a person to the left or right when they land on it. If I can’t show the wheels turning then I’ll just want to have it move them from the left or right. How would I do that with an object? I want it to continuously move while the person is on it though.
Again thank you for taking the time to send that example to me too!
Michelle [import]uid: 72372 topic_id: 13626 reply_id: 50060[/import]
Sprites are actually really easy. Corona has a few sample apps, check out all of these links:
http://developer.anscamobile.com/reference/index/sprite
http://developer.anscamobile.com/sample-code/sprites
If you just play around with the dimensions you will get it to work. In order to make sprites you have to make different images in photo shop, then go to Zwoptex online and convert them all into one sprite sheet by height.
For the person moving left or right, just add gravity to (-9.8, 0) or just do a transition.to function to make the illusion like the person is moving down the conveyor belt.
Regards,
Jordan Schuetz
Ninja Pig Studios [import]uid: 29181 topic_id: 13626 reply_id: 50069[/import]