??? Appearing and disappearing actors ???

PhilipNewzealandPhilipNewzealand Member Posts: 66
edited November -1 in Working with GS (Mac)
How can i get an actor to appear and disappear. For example i have an wall that will appear and disappear other actors can hit the wall once the wall is visible but goes through it when the wall has disappeared ??? Sorry if this does not make sense, any help would be great.

THANKS ALL

http://cantcodewontcode.tumblr.com/

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    You could hard code it. Meaning you could use change attributes to change it's X and Y position to another place, then something else triggers it to return. That would give the "appearance" that it's gone. To make it slowly disappear, you could use Interpolate self.alpha to 0 over a second or something, then once alpha is = 0 you could change self.positionX,Y to off the screen.

    Then, put a timer or some other form of "trigger" to return it back to it's original place.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I would just adjust the alpha levels and have your collision rules in the wall say

    When self.Alpha is greater that 0
    --Collide with players
Sign In or Register to comment.