a 1000000$ question

fenix66fenix66 Member Posts: 59
edited November -1 in Working with GS (Mac)
How to spawn main actor after his death in 9.6?

when actor is spawned at the start of game it turns attribute actoronscreen to 1, when he dies it turns actoronscreen to 0.
the rule is : when lives>0 and actoronscreen=0 spawn actor
it's simple, obvious and it always works , but it doesn't work in 9.6 !!!
Any ideas ?

to prevent answers like check you code or logic, everything was checked 10 times , each attribute changes correctly but no actor is spawned .And it worked in all previous versions of GS.

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    something realy similar happend to me with this update, all i needed was a timer.

    try this:

    rule- when lives >0 and actorscreen=0

    -timer after.2 seconds run to completion checked
    -- spawn actor

    with each update the creator gets better and faster, so things will fire differently then before. For example it seems yo ur case is the spawn is happening as soon as the attribute is turning to 0, so it could be spawnign before the change is finished. Hence the timer i told yhou to try
  • DoManDoMan Member Posts: 102
    Check your code or logic.
  • fenix66fenix66 Member Posts: 59
    Hey, it works!
    You just win 1000000$, i will send you a check:)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    fenix66 said:
    Hey, it works!
    You just win 1000000$, i will send you a check:)

    hehe no check needed :) But yeah whenever you have somethign that changes then anothe behavior goes off the change,sometimes the change doesnt happen quick enough, hence the timer.
  • DoManDoMan Member Posts: 102
    Are you giving me money?!
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    DoMan said:
    Are you giving me money?!

    no me LOL sorry doMan ;)
Sign In or Register to comment.