Start button affecting other actor.

mkfostermkfoster Member Posts: 27
edited November -1 in Working with GS (Mac)
I have a start button on every level and besides starting the level (obviously) I want it to destroy or take away another actor on the scene which is just an actor stating what level the player is on. Any Ideas? Thanks. :)

Comments

  • devjohnsondevjohnson Member Posts: 94
    Not done this yet but it sounds like you can take a game attribute and change that when you start the game and have a rule in your level actor that says when that attribute changes it should be destroyed, or alpha 0.

    Game Attribute - Playing - Boolean - False

    Actor - Start Button - Rule - on touch
    -start game
    -Change attribute Playing = true

    Actor - Level - Rule - If Playing = true
    -Destroy actor

    Also, don't forget to reset attribute Playing to false when either losing or winning, and on level select so that it will be fresh each time you load the scene.

    Hope this can help.
  • mkfostermkfoster Member Posts: 27
    Thanks devjohnson, good suggestions. it worked. :)
  • devjohnsondevjohnson Member Posts: 94
    Good to know. Good luck.
  • mkfostermkfoster Member Posts: 27
    Thanks for the file tshirtbooth. :)

    ok, so I have a bar that moves automatically back and forth. I added a collide function to a ball so when it hits the bar it bounces off. However the bar reacts to the ball and bounces itself, moving from it's "fixed location. I tried clicking off the "Moveable" aspect in the bars Physics property. This worked, but now it's overridden the back and forth of the bar. :) Thanks.
Sign In or Register to comment.