help with timer & booleans

bobzAppsbobzApps Member Posts: 22
edited November -1 in Working with GS (Mac)
Hi,

I need some help.

I have a 'powerup', so when you click/touch it the actors move slower.

so basically i have when boolean slowmotion is true i spawn these powerups, when a powerup is touched, it changes slowmotion to false for TEN seconds.

How can I change the boolean back to true after 10 seconds ?

Comments

  • hman360hman360 Member Posts: 590
    Timer > after 10 secs> change att ___ to true
  • bobzAppsbobzApps Member Posts: 22
    where do i put that ?

    thanks for your reply
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Use a timer. When the actor collides with the power up, for 10 seconds change attribute.slowmotion to false. And use an otherwise...change attribute.slowmotion true.
  • bobzAppsbobzApps Member Posts: 22
    thanks
  • gamedivisiongamedivision Member Posts: 807
    Also your gona need to make attributes for when you reset the scene and change the scene,because if you don't your gonna get issues later on,so no matter where you are in the game,soon as you change or reset that scene it puts every attribute back to when you first started playing it,why I say this is because what if you play, collect power up and game finishes before that time can run to the end then your starting a new game with a false attribute,then if you have 30,40 levels your gona have to change that in every one
Sign In or Register to comment.