Problem with actor spawning and destroying [SOLVED]
Hey all..
So here's my problem.
I have moving stones, which will move from Y up to down, the player can touch the stones to make the Hero move from stone to stone.
Since the stones are moving, the stone should spawn the Hero actor on itself, the Hero moves the same speed so it will be on the stone when clicked on the stone. But...... here's what I can't figure out.. while it must be quite simple:
The old hero actor will still be on the first stone, so on each stone the player clicks, a new Hero actor will be spawned, but the old ones won't dissapear.
I tried some rules on the Hero actor like:
'when attribute HeroJump=0, actor will be destroyed',
and then rules on the stone like:
-when touch on stone, set attribute HeroJump to 0,
-set attribute HeroJump to 1
-spawn actor Hero on stone
But this won't work properly.
Any ideas?
Comments
Try this: https://www.dropbox.com/s/3wgt2q3j87nfi36/re-spawn.zip
(Click on a white square to re-spawn at that location.)
Superb @tatiang, that's exactly what I needed.