Jawad Amjad
Jawad Amjad

Reputation: 2552

How to pass multiple sprites as a Single sprite between two Activities in AndEngine

I have a background images, on which there is a table (sprite) is placed. On table sprite there are flowers placed. I want to make all these sprites a Single sprite and pass then to next activity. Is it possible? If so how/?> If not how can I solve this issue??

Upvotes: 0

Views: 215

Answers (1)

longshorts
longshorts

Reputation: 192

Store all the sprites you want to send in a Sprite array (Sprite[]), or a list if you prefer. Then add the resultant array to your intent that you use to launch your next activity by calling putExtra(String name, Object object) on the intent. Then you can grab it in the next activity.

For more info see: How to pass an object from one activity to another on Android

Upvotes: 2

Related Questions