"Any Actor" equivalent in a Draw Actor script

Non-platform specific questions.

"Any Actor" equivalent in a Draw Actor script

Postby smillz » Fri Aug 08, 2008 11:33 pm

is there a way in a draw actor script to use something like "Any Actor" instead of specifying an actor? For example:
instead of
Code: Select all
if(Player.x == x)
{
    x -= 10
}

I want to do something like
Code: Select all
if(Any_Actor.x == x)
{
    x -= 10
}

that's not the action I'm actually attempting, but it's an example.... You know what I mean right? :(
smillz
 
Posts: 21
Joined: Fri Jul 20, 2007 2:10 am
Score: 0 Give a positive score

Re: "Any Actor" equivalent in a Draw Actor script

Postby Thanx » Sat Aug 09, 2008 12:30 pm

I don't think there's any way to do that, though I could only give a good answer if I'd have the exact example you're actually using...
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: "Any Actor" equivalent in a Draw Actor script

Postby smillz » Sun Aug 10, 2008 12:37 am

Well, the way I really needed to use it was for positioning of any actor relevant to a certain actor, but DST gave me an idea for using an array kind of system, so I know what to do. Thanks anyway :)
smillz
 
Posts: 21
Joined: Fri Jul 20, 2007 2:10 am
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron