Accelerate toward

nemnem Member Posts: 9
edited November -1 in Working with GS (Mac)
Hi!
Today I was just starting experimenting with GameSalad: very nice tool!!
I was trying to set the attribute "accelerate toward" in order to accelerate, say, actor 1 toward actor 2. Problem is that when I go to the expression editor to insert the position of the actor I what to accelerate toward, I find only the possibility to insert the position of the actor I'm editing. That's quite odd, because usually one doesn't want an actor to accelerate toward itself. ;-) I was searching the forum about this issue, but was not able to find anything... Some suggestions?? Thanks a lot in advance!
Nem

Comments

  • CabacoCabaco Member Posts: 414
    what kind of attributes are those?
  • mynameisacemynameisace Hull, UKMember Posts: 2,484
    They are Real attributes

    Ace
  • MotherHooseMotherHoose Member Posts: 2,456
    If Actor2 is static ...

    on Actor 1
    on the instance that you have dragged into your scene
    click and unlock it

    in the Accelerate Toward Behavior
    ➩ expression... Current Scene>Layers>whatever layer your actors are on>Actor2>Position>X
    ⇧ expression... Current Scene>Layers>whatever layer your actors are on>Actor2>Position>Y

    MH
Sign In or Register to comment.