sorry,I have another question for spawn objects,I would like to create an enemy on the last platform I've been created
for example i have 11 max number of platform created,when the 11 platform was created create a enemy on the 11 platform
example image: postimg.org/image/81z44y43x
Develop games in your browser. Powerful, performant & highly capable.
Assuming 'Platform' is the name of your platform object, the last one should be Platform(Platform.count - 1). You can pick it this way, and make it spawn at an offset. If you use a tilemap, i have to think some longer. Its very handy if you make a .Cap with the basics covering your question, so someone can alter it for you.
i triyed with platform count but don't work, the object spawn in other position...
(I don't post capx file because the forum don't authorise me)