CreateActor return actor pointer

Ideas for Game Editor evolution.

CreateActor return actor pointer

Postby CrackedP0t » Sat Mar 08, 2014 2:46 am

It would be very useful to make the CreateActor() function return a pointer to the actor it created, so
Actor * example = CreateActor("example", "icon", "(none)", "(none)", 0, 0, true);
would work.
/人 ◕‿‿◕ 人\
Fang Pictures, my game development company:
http://fangpictures.comuf.com
User avatar
CrackedP0t
 
Posts: 157
Joined: Mon Dec 30, 2013 5:49 pm
Location: Crested Butte, CO (The US of A)
Score: 8 Give a positive score

Re: CreateActor return actor pointer

Postby lcl » Sat Mar 08, 2014 3:25 am

That already works. Just notice that you can't have the actor pointer use the same name as the actor itself.
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: CreateActor return actor pointer

Postby CrackedP0t » Sat Mar 08, 2014 3:40 am

It already does that??!!
:shock:
Well, that's useful.

Whoops :oops:
/人 ◕‿‿◕ 人\
Fang Pictures, my game development company:
http://fangpictures.comuf.com
User avatar
CrackedP0t
 
Posts: 157
Joined: Mon Dec 30, 2013 5:49 pm
Location: Crested Butte, CO (The US of A)
Score: 8 Give a positive score

Re: CreateActor return actor pointer

Postby lcl » Sat Mar 08, 2014 8:07 am

Haha :lol:
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron