well I create a sprite every second at the same position . And I would like to create the sprite but every time with x + 10 .So every second the sprite is created but with an x position that grows of 10. sorry for my english, I french :/
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just use a static variable you increment each time you create a sprite:
I’m not familiar with cocoas2d’s actual syntax, but that should work.