GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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

helpingtogrowhelpingtogrow Posts: 63Member, PRO

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 Posts: 269Member, PRO

    @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 Posts: 63Member, PRO

    Thank you so much

  • bob loblawbob loblaw Posts: 269Member, PRO

    @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.