How to get object from UID in action?

For questions about using Classic.

Post » Fri May 06, 2011 12:10 pm

First meeting~

in action,
we cam get UID of object.UID,
but how to get object from UID?
I just can to making this:
[code:1y52zcka]event start:
Objs={}

Before UID turn to Obj:
for obj in AllObjFamily:
if not Objs.has_key(obj.UID):
Objects[obj.UID]=obj

UID turn to Obj:
Objs[UID][/code:1y52zcka]
Anybody have other idea?
B
1
G
1
Posts: 2
Reputation: 429

Post » Sun May 08, 2011 7:09 am

"rexrainbow" said:
[code:3orkgrt2]SOL.Objs[/code:3orkgrt2]
that code can get obj in ObjEvent action
(regret about my English level...)
I try it, and not bad
B
1
G
1
Posts: 2
Reputation: 429


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests