attribute not turning back
developer6810
Member Posts: 139
This issue came about from my other thread but is a completely different issue. I basically have a powerup that makes an actor have x2 the score (it gets an increase in score every second automatically as well as from moving over items). I only want the x2 to occur for 10 seconds. The problem is that after 10 seconds, it doesn't change back. Here's my coding:
RULE (inside powerup actor): if actor overlaps or collides with (the other main actor) --- destroy actor, timer: FOR 10 seconds, change attribute game.x2on to true, timer: AFTER 10 seconds, change attribute game.x2on to false
Any ideas?
RULE (inside powerup actor): if actor overlaps or collides with (the other main actor) --- destroy actor, timer: FOR 10 seconds, change attribute game.x2on to true, timer: AFTER 10 seconds, change attribute game.x2on to false
Any ideas?
Answers