problem respawning an actor
THRSTN
Member Posts: 178
hi all
im having a problem where i have and actor (lets call him Actor "A" with 5 lies that controls the camera along a scrolling screen after 5 attempts the actors is destroyed and a screen pops up (actor "B")that offers another 5 trys and resets the screen on touch and destroys actor B.
i have 2 layers, actor A is on the scrollable "background" and actor b is on the non scrollable layer"Layer1" (i know real original with layer 1's name right?)
Im would like to not reset the scene just the actor "A" in the start position so i set on touch of actor B spawn actor A at start x and y. but when this occurs Actor A no longer controls the camera and actor A goes out of frame.
could it be that Actor B is respawning actor A only on Layer 1 instead of background?
any idea's
Thanks
THRSTN
im having a problem where i have and actor (lets call him Actor "A" with 5 lies that controls the camera along a scrolling screen after 5 attempts the actors is destroyed and a screen pops up (actor "B")that offers another 5 trys and resets the screen on touch and destroys actor B.
i have 2 layers, actor A is on the scrollable "background" and actor b is on the non scrollable layer"Layer1" (i know real original with layer 1's name right?)
Im would like to not reset the scene just the actor "A" in the start position so i set on touch of actor B spawn actor A at start x and y. but when this occurs Actor A no longer controls the camera and actor A goes out of frame.
could it be that Actor B is respawning actor A only on Layer 1 instead of background?
any idea's
Thanks
THRSTN
Comments
Actor A goes thru his 5 try's
Actor B pops and says Try again
Actor A goes thru ANOTHER 5 attempts.
Actor B pops up but so does Actor A over and over and over again
actor A has an integer that when it overlaps with actor C adds 1. once it reaches 5 spawn actor B
actor B spawns and resets that integer to 0. On touch of actor B spawn actor A for another 5 attempts the whole process is one never ending cycle
but for some reason now actor A is spawning continuously after the second time actor b is shown and when actor b is touched actor A doubles up on screen.
I know its gonna be some simple explanation but its late im tired and not thinking clearly goin to bed and taking a fresh look at it tomorrow after some rest.
Thanks for your suggestions TSB.
THRSTN