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

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
Bugala
Posts: 1412
Joined: Sun Feb 14, 2010 7:11 pm

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

Post 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?
GMKai
Posts: 161
Joined: Mon Feb 15, 2010 10:58 am

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

Post 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()"
Locked