Page 1 of 1

[25 Dec 2009] setlayername()can i use it without number?

Posted: Sat Jun 13, 2020 5:32 pm
by Bugala
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 25 Dec 2009 06:33:23 -0000

thanks from previous answers to my openfile question, i can now make much better and clearer code thanks to you.

Next question is about SetLayerName()

Normally you use it:

Code: Select all

Setlayername(id, "name")
However, ssince i would like to use it on runtime giving names to all enemy layers, amount that changes during the game, it gives me extra trouble keeping up with he number of layers existing so is there way to do something like this:

Code: Select all

Createanim(nextone, otherspecs)
Displayanimframe(the one just created, otherspecs)
Setlayername(the one just created, "name")
Or is there a command to for example check how ,many layers thwre are on screen currently?

[25 Dec 2009] Re: setlayername()can i use it without number?

Posted: Sat Jun 13, 2020 5:32 pm
by GMKai
Note: This is an archived post that was originally sent to the Hollywood mailing list on 25 Dec 2009 07:51:04 +0000

Hallo samuli,

check the command "GetAttribute()"