Page 1 of 1

CreateActor Problems

PostPosted: Sun Apr 01, 2012 7:45 am
by joncb
For some reason I am having problems re-creating actors I have destroyed. AT the end of a level I Destroy all the actors in the playing area in preparation for setting up the next level. However, when I go to CreateActor for the actors destroyed at the end of the level, they are not created. In the Actor Control I have "Create at startup:" set to No for each of the relevant actors, and there is no problem when I create them for the first level. The problem only occurs once I destroy them at the end of the leve and try to re-CreateActor for the next level.

Any suggestions?

Re: CreateActor Problems

PostPosted: Sun Apr 01, 2012 8:25 am
by skydereign
CreateActor isn't dependent on if the actor was destroyed or not. So they should still be created. Are you sure they aren't being created? Perhaps the position you created them to is wrong? You can check if the actor was created by either checking the Actor* returned by the function (seeing if its cloneindex is equal to -1) or using a text actor to display the actor count (using ActorCount("actor_name")).