actors that trigger other actors?

eboyeboy Member Posts: 239
edited November -1 in Working with GS (Mac)
Can you use an actor as a trigger button to effect another actors behavior?

Comments

  • WeswogWeswog Member Posts: 1,171
    Yes you can have a attribute integer called trigger or whatever you want to call it and say when attribute trigger =1 move or whatever you want it to do:)
  • JGary321JGary321 Member Posts: 1,246
    Sometimes what I do is make a 1x1 'trigger' actor. In my game I have a lot of stats to keep track of. I keep them on an actor level. I use a few game.attributes to 'carry' them to a new actor. So on the actor I want to have the stats I would do something like

    When collide with 1pixel actor Change attribute.

    self.HP to game.HP
    self. Damage to game.Damage

    I won't get into why I needed this, but you see the point. You can make trigger actors that spawn on top of your recieving actor. The only rule you need in the trigger actor is:

    Timer:
    after .1sec (make sure completion is checked)
    Destroy

    Maybe this helps.
  • eboyeboy Member Posts: 239
    uhh, is there a video of this? :)
  • JGary321JGary321 Member Posts: 1,246
    nope
  • WeswogWeswog Member Posts: 1,171
    I will make a video for this if it helps:)
  • WeswogWeswog Member Posts: 1,171
    Would it be ok if I use .70 Gamesalad?

    Cheers, Weswog
  • WeswogWeswog Member Posts: 1,171
    Or do you want me to use .81?
  • design219design219 Member Posts: 2,273
    Ha, if you're taking requests, can it have zebras, because I really like zebras!
  • WeswogWeswog Member Posts: 1,171
    Ok I will add Zebras:)

    Cheers, Weswog
Sign In or Register to comment.