Problems playing with CONSTRAIN ATTRIBUTE

DuendeArkanoDuendeArkano Member Posts: 52
edited November -1 in Working with GS (Mac)
Im triying to make an easy AI for a game, the basic idea is to get the position from "object1" every time and get it from "pnj" in order to move to this direction.

I think the key for this issue is Constrain Attribute, but i dont know correctly how to send the info to a variable and to get it and use it to move a character.

Thanks in advance :)

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    An easy way would be to use the 'Move To' behavior. Just put the x and y coordinates of the object you want to move to -- and it will take care of the rest.

    If your question is really about making variables. They are called attributes in GameSalad. You can do a search for a tutorial to see how to make an attribute.
Sign In or Register to comment.