CreateActor

Ideas for Game Editor evolution.

CreateActor

Postby olly2000 » Fri Oct 29, 2010 6:31 pm

That would be very usefull if we could choose the actor who's relative to the created actor. Just like in the Moveto event.I hope everybody understand. :|
Am I the only one who speaks French here?
User avatar
olly2000
 
Posts: 25
Joined: Mon Aug 09, 2010 6:48 pm
Location: Canada,Quebec
Score: 1 Give a positive score

Re: CreateActor

Postby skydereign » Fri Oct 29, 2010 11:00 pm

Well you can set the CreateActor to create the actor to where an existing actor is, and relative to it. Set the [Relative to Creator] to no, and in the xy coordinates put the x and y of the actor you want it relative to.
Code: Select all
CreateActor("createdActor", "createdAnim", "(none)", "(none)", otherActor.x+xDisp, otherActor.y+yDisp, true);


So this creates createdActor relative to otherActor, setting of course the displacement to what you want it to be.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: CreateActor

Postby olly2000 » Sun Oct 31, 2010 6:42 pm

Ho! I didn't know that.Thanks :D
Am I the only one who speaks French here?
User avatar
olly2000
 
Posts: 25
Joined: Mon Aug 09, 2010 6:48 pm
Location: Canada,Quebec
Score: 1 Give a positive score

Re: CreateActor

Postby olly2000 » Fri Dec 03, 2010 12:11 am

But when the created actor has a parent it does'nt work :( . It is normal?
Am I the only one who speaks French here?
User avatar
olly2000
 
Posts: 25
Joined: Mon Aug 09, 2010 6:48 pm
Location: Canada,Quebec
Score: 1 Give a positive score

Re: CreateActor

Postby DarkParadox » Fri Dec 03, 2010 1:11 am

If the parent is set using the "parent:" option in the main area of the actor control menu, set that parent to "none", and on a create actor event, use change parent to whatever actor you need 【this is on the actor that you're creating】. Hope this works Image
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest