Is it possible to turn off constrain attributes?

jazzloverjazzlover Member Posts: 4
edited November -1 in Working with GS (Mac)
Is is possible to constrain an actor's attributes temporarily and after a period of time reset those attributes to their current value and thus "turn off" the constraining of the attributes? If so how would you do this?

Thanks

Dave

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    You could use a boolean (true or false) lets call it "constrain" and do something like if "constrain" is true.....

    Darren.

    image
  • jazzloverjazzlover Member Posts: 4
    Thanks for the response, Darren. What you are suggesting I don't think will work for what I'm trying to do.

    Let me give a few more details. I'm using tshirtbooth's method of determining the distance between actors. I've got a game level attribute called "distanceFromSquidly" that gets constrained to the magnitude formula given by TSB. When the distance variable is less than 16 I destroy one of the actors. I'd like to at that time "reset" the distanceFromSquidly to 75 until my "squidly" actor encounters another "enemy" actor that will cause it to constrain once more to TSB's magnitude formula.

    I'd like to know if this is possible, and if so how would I go about doing that. I've tried simply changing the attribute distanceFromSquidly at the time the "ememy" actor is destroyed, but it doesn't seem to change. Not sure what I'm doing wrong.

    Thanks again for your help. Hope I didn't muddy the waters too much. :-)

    Dave
Sign In or Register to comment.