Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
array of sprites — Gideros Forum

array of sprites

virderosvirderos Member
edited January 2015 in General questions
Hi, I'm new to Gideros, programming and making apps and I have a question.
I have many sprites of the same classes and a timer modifies their propertyes depending from other sprites, so it would be useful an array of sprites..it's possible?
For example:

local sprite[1][1]=myclass.new("image1.png")
...
local sprite[j][k]=myclass.new("image5.png")

stage:addChild(sprite[1][1])
...
stage:addChild(sprite[j][k])

**...onTimer
for every sprite setimage of sprite[j][k]=getimage of sprite [k][j] (it's only an example)**
Could someone give me some help?
Thank you!

P.S. Sorry for bad english and for lexical imprecision.

Comments

Sign In or Register to comment.