How to view an actor's x and y positions in another actor

helpingtogrowhelpingtogrow Member, PRO Posts: 73

Hi, How do I display an actors x and y positions in another couple of
actors.
I'm new to GS.
Thanks

Comments

  • bob loblawbob loblaw Member, PRO Posts: 554

    @helpingtogrow said:
    Hi, How do I display an actors x and y positions in another couple of
    actors.
    I'm new to GS.
    Thanks

    -have global attributes of playerx and playery.
    -in the actor whose position you want to display, have constrain behaviours to constrain the above attributes to self.playerx and self.playery
    -in the actor you want to display, have a display text behaviour with game.playerx..” ,”..game.playery (make sure you click on the attributes in the menus, don’t type them out)

  • helpingtogrowhelpingtogrow Member, PRO Posts: 73

    Thank you so much

  • bob loblawbob loblaw Member, PRO Posts: 554

    @helpingtogrow said:
    Thank you so much

    all good. i hope it made enough sense for you to apply to your project.

Sign In or Register to comment.