Stencyl 3.4.0 is now out. Get it now!

Having trouble distinguishing between actor types in a shared behavior

jamescatania1

  • Posts: 4
Hi, I was wondering how I can create a condition (in an if statement) if the current actor is the (actor type). I have two actors, and they both share the same basic behavior, but I need one actor to do something else. Rewriting the actor behavior and all of it's attributes would be incredibly tedious. Thanks for your response!

merrak

  • *
  • Posts: 1494
Look in the Actors palette -> Properties tab. There are some blocks for "type/group of actor" as well as blocks to access one of the types or groups you created. You can use these in your 'if' statement.

jamescatania1

  • Posts: 4
thanks! it worked!