Problem with actor spawning and destroying [SOLVED]

BasGoodboyBasGoodboy Member, PRO Posts: 310
edited April 2014 in Working with GS (Mac)

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?

Goodboi Gamestudios | Monster Jumper now on the App Store

Comments

Sign In or Register to comment.