Lets take the list of friends for example.
How do i create for each friend a sprite to hold their photos etc like drop down list.
After that to see your friends on list one under the other one.
Not interesting of how i call friends picture etc, only how to create this sprites one down the other.
You can do it in a loop:
Repeat 100 times -> Create sprite at x=50, y=200*loopindex
Check this demo.
That was im looking for , y = 100 * loopindex.
The very first sprite is created at 0 and the other continue 100px down each other.
Any way to change the y of the first sprite?
200+(100*loopindex) seems to do the job.
Is that correct?
Develop games in your browser. Powerful, performant & highly capable.
Thank you dop2000