self.position

gariantrollgariantroll Member Posts: 219
edited November -1 in Working with GS (Mac)
I have character that is suppose to respond to the event self.position.Y < 0. When this occurs the character is supposed to go up, but it doesn't work. Yet the character responds when the self.position.X > 240. The character seems to respond to everything, but the self.position.Y. Any ideas?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    well self position y < 0 would be below the screen, = to or less then would be right at the bottom before the end of the screen. So unless you characters right at the bottom edge it wont respond to that.
  • gariantrollgariantroll Member Posts: 219
    I moved it to below 10 and it still doesn't work. Also, when I have other characters go off screen, they come back with similar commands.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    10 would still be at the very bottom of the screen, are you sure the players making it to it? I would put a display text behavior in the actor displaying its self position y to see if it makes it less then 10
  • gariantrollgariantroll Member Posts: 219
    I am using the Move To behavior when it reaches an attribute called Direction is = to 3.
  • gariantrollgariantroll Member Posts: 219
    I am using the Move To behavior when it reaches an attribute called Direction is = to 3.
    Also, I have characters moving back and forth, but since I got 9.6, I am having trouble with this. But you are right, JohnPapiomitis, it not turning the attribute to 3 when I use the text editor. But it doesn't seem to work at any Y height.
  • gariantrollgariantroll Member Posts: 219
    I think this might be a bug because I have a similar character that seems to respond to the Y height. This issue kinda started with the 9.6 update maybe its a bug? I don't know. I don't want to ump to any conclusions.
  • gariantrollgariantroll Member Posts: 219
    This video isn't particularly helpful because I have been doing this for a while. I am specifically having an issue with the Y. If I did this video with Y coordinates it just doesn't work. And its not that actor isn't moving up. when it gets hit by another actor it moves up fine based on that event. But when it comes to being below a particular Y position, it does not respond to that event.
  • gariantrollgariantroll Member Posts: 219
    Okay, I made a new actor and made new rules that are similar to the rules for the actor and it works, so I am sure that this is a bug. I am going to build the character from scratch and see if that works. If it does, then this might be a bug dealing with copying characters and changing attributes.
  • gariantrollgariantroll Member Posts: 219
    Okay, I fixed the problem, and it does seem to be a bug from the update. I had to actually copy and paste code from another actor that the code worked on and then it worked. The actor that had this trouble was copied from another actor that seemed to have the same issue. I am going to fix that now. Thanks for your efforts guys.
Sign In or Register to comment.