Region / create actor bug

Non-platform specific questions.

Region / create actor bug

Postby yttermayn » Thu Feb 24, 2011 1:41 am

What I did:
I had two different play areas and only one had a region around it. Outside the region, I had actor A create another actor B at a random location nearby. When I moved the view to the A actor, it created the other B actor fine. When I dragged the view until the original A actor was out of the view, suddenly a bunch of B actors were continuously created until I dragged the view back over A. It seems as if A's create actor script was being run every frame when A was not in view. Removing the region made this behavior stop.
yttermayn
 
Posts: 48
Joined: Sun Nov 25, 2007 4:10 pm
Score: 2 Give a positive score

Re: Region / create actor bug

Postby Game A Gogo » Thu Feb 24, 2011 10:48 am

Use two regions then. You're not suppose to go out of region like that o:
And I wouldn't be suprised this actors gets destroyed everyframe as well.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest