In my game, when I click helicopter image, a Parachute is displayed. I then change its speed so as to make it fall down. I can go on clicking on the helicopter as many times and it will generate as many Parachutes on screen, I do that by creating new sprite of type “Sprite_TypeChute”. It all works beautifully well.
Now I want to move these food packets depending upon how the phone moves. So I used Accelerometer. It worked well when I had a single Sprite. But it is simply not working in my scenario. I am attaching screenshot of the code I am using. Tried many options to move all Sprites but I just can’t get it. Can someone please help?
First image - My code to create dynamic Sprites
Second image - My code to move the helicopter and all Sprites basis the xAcceleration