Constraining Attribute

broappbroapp Member Posts: 4
edited November -1 in Working with GS (Mac)
hi ive been using this post:
http://gamesalad.com/wiki/how_tos:gsc_follow_another_actor
and whenever i preview, the following actor just goes to the bottom left hand side of the screen
(i used chasing actor method one if it helps)
any one have a fix for this?

Comments

  • StuartYStuartY Member Posts: 134
    Going to the bottom left-hand corner means your follower is approaching 0 on the X axis and 0 on the Y axis. It sounds like you aren't retrieving the Target X and the Target Y data from the actor you want followed correctly. To debug this, set up two blank actors, and use a rule to "display text" equal to the Target X variable in on, Target Y in the other. Then you won't be working blind.

    Have you set your attributes up first? You can't just refer to an attribute in Gamesalad, you need to define it from the Attributes menu in the Inspector panel. Make sure to refer to the "Monitoring the Target's Position" in the wiki and copy it exactly.
  • StuartYStuartY Member Posts: 134
    StuartY said:
    Going to the bottom left-hand corner means your follower is approaching 0 on the X axis and 0 on the Y axis. It sounds like you aren't retrieving the Target X and the Target Y data from the actor you want followed correctly. To debug this, set up two blank actors, and use a rule to "display text" equal to the Target X variable in one, Target Y in the other. Then you won't be working blind.

    Have you set your attributes up first? You can't just refer to an attribute in Gamesalad, you need to define it from the Attributes menu in the Inspector panel. Make sure to refer to the "Monitoring the Target's Position" in the wiki and copy it exactly.

  • BroAppGamesBroAppGames Member Posts: 6
    i just tried multiple times trying to get the attributes to constrain. i even tried changing the attributes manually rather than the players position changing it and it did show the position i entered on the two text blocks, and have the following actor move to the designated coordinates. would you know of any reason the constrain attribute behavior would not be working. (yes i have set up the correct 2 real attributes)
    any help would be great.
  • BroAppGamesBroAppGames Member Posts: 6
    ok im pretty certain now that the problem is with the constraining attribute
  • BroAppGamesBroAppGames Member Posts: 6
    i was also jacking with it by having in a change attribute instead of the constrain attribute. my 2 attributes for the tracking of the coordinates have been "real" type attributes. as said in the wiki. the real type attributes also have the default values set to 0. would there be another type that wouldnt have this?
Sign In or Register to comment.