hi guys am making auto runing game style but i can't make the power up function disactive after an x of time <img src="smileys/smiley5.gif" border="0" align="middle" />
the function called (X2)
here is the capx
Develop games in your browser. Powerful, performant & highly capable.
player on collision powerup:
[add powerup effects (like activating your group)]
[start timer "powerup" for 5 seconds once]
player on timer "powerup"
[remove powerup effects (like deactivating your group)]
i already done that but still not work
Well because your "on timer"-event is empty and the start of your timer is deactivated. Also you try to run "every tick" in a function, which is run only when called (so if you call it once, the stuff in "every tick" will only run once).
You try to deactivate the group "timer" which doesn't exist in your project. If think you need to clean up some stuff there ^^.
ok i active time
put power up effect on timer
disactive every tick
still not disactivating